Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent change seems to have broken /plugin/MobileManager/upload.php #9129

Open
walt93 opened this issue Jun 12, 2024 · 3 comments
Open

Recent change seems to have broken /plugin/MobileManager/upload.php #9129

walt93 opened this issue Jun 12, 2024 · 3 comments
Labels

Comments

@walt93
Copy link
Collaborator

walt93 commented Jun 12, 2024

Describe the bug
We have scripts which depend on /plugin/MobileManager/upload.php

The contract for upload.php is broken. Formerly, after an upload, it would return a response with a key videos_id which contained the id of the video which was just uploaded. Our scripts depend on this videos_id for post-processing the upload.

Now when we call the endpoint, the response is empty, causing multiple downstream failures.

To Reproduce

  1. Run the same script we've run for the last six months to upload videos.
  2. Observe that the script fails

Log output. 1. Call the endpoint. 2. Log the response. 3. Try to decode the response and get an exception.

Uploading the video file to conspyre
response =
* An unexpected error occurred: Expecting value: line 1 column 1 (char 0)

Expected behavior
The script to continue to hold up its side of the API contract, and to return the expected data, or an error. No error and empty response is a new and unexpected condition.

@walt93 walt93 added the bug label Jun 12, 2024
@DanielnetoDotCom
Copy link
Member

Hi

this error does not make sense to me. I am not even sure if it is a PHP error.

please check the AVideo log

@walt93
Copy link
Collaborator Author

walt93 commented Jun 16, 2024

Daniel this error is returned from the endpoint. The error reporting is from the Python script calling it.

Why is the script returning no response? We expect it to return the id of the video which was uploaded.

@DanielnetoDotCom
Copy link
Member

Check the AVideo logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants