Closed whyleyc closed 3 years ago
First of all, thanks for figuring this out. I'd like to chat about this further. So, we can have a better understanding of this. :)
@harshanas Sure - what questions do you have?
I fixed the issue you mentioned. Thanks again for figuring this out :) Hope this will help someone.
It looks like there is an error in the code to kick off the download of a converted file:
https://github.com/harshanas/ZamzarConverter/blob/f65fa8593b29c52510e01fbe541082b31752877a/convert.py#L67
The code here uses a
/job/ID
to initiate a file download, whereas a file ID should be used instead. Using the Job ID would cause an HTTP 404 error to be thrown.The file ID can be found by querying the
/job/ID
endpoint for a job with astatus
ofsuccessful
and interrogating thetarget_files
array. For example in the response below we can see that the file ID to use for download would be 3:You may wish to modify the script to have a routine to check the job status before trying to find the file ID, like this:
If you would like to chat further let me know, I'm one of the lead developers for the Zamzar API.