We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
ABDUL Salam
2 months agoExplorer | Level 3
Handling download_failed Errors in Dropbox API Jobs
I have a cron script that fetches PDF URLs and saves them to our Dropbox. Sometimes, I encounter a download_failed error for some files.
When using the save_url endpoint, I receive an asyn_job_id, ...
ABDUL Salam
Explorer | Level 3
Hi Greg-DB
Thank you for your guidance regarding the 'download_failed' error. I appreciate your support.
I maintain detailed cron logs and record the payloads sent to the Dropbox API. I’ve reviewed the logs, and I can confirm that all URLs except one were successfully saved. There are couple of instances in which I have faced same problem. If there’s a code-side issue, I would expect that the other URLs would have failed as well.Here’s the relevant payload from the logs for reference:
Successful Uploads:
payload:{"path":"/MY_DIRECTORY_PATH/MY_FILE_NAME.pdf","url":"https://cdn.customily.com/ExportFile/personalisedfavours/171c5f4e-3c06-42ea-9d62-99638315b4b6.pdf"}uploaded customily orders to dropbox: {".tag": "async_job_id", "async_job_id": "7na9uA-KPmwAAAAAAAAAAQ"}payload:{"path":"/MY_DIRECTORY_PATH/MY_FILE_NAME.pdf","url":"https://cdn.customily.com/ExportFile/personalisedfavours/85b4fe9c-aade-407d-9718-116796b7bf84.pdf"}uploaded customily orders to dropbox: {".tag": "async_job_id", "async_job_id": "cxg9F1PkAXcAAAAAAAAAAQ"}payload:{"path":"/MY_DIRECTORY_PATH/MY_FILE_NAME.pdf","url":"https://cdn.customily.com/ExportFilepersonalisedfavours/518055b4-1fd5-4e8e-9f04-89f119cbc4a7.pdf"}uploaded customily orders to dropbox: {".tag": "async_job_id", "async_job_id": "aLCjk-ilEX4AAAAAAAAAAQ"}payload:{"path":"/MY_DIRECTORY_PATH/MY_FILE_NAME.pdf","url":"https://cdn.customily.com/ExportFile/personalisedfavours/c209a19e-c7e4-46b2-85a0-5ac37d98ed90.pdf"}on checking using job status check api i get tag "complete"
Failed Upload:payload:{"path":"/MY_DIRECTORY_PATH/MY_FILE_NAME.pdf","url":"https://cdn.customily.com/ExportFile/personalisedfavours/c209a19e-c7e4-46b2-85a0-5ac37d98ed90.pdf"}Response: {".tag": "async_job_id", "async_job_id": "bSXBts0RiioAAAAAAAAAAQ"}on checking using job status check api i get download_failed for this job
Please let me know if you’d like me to open a ticket with this information.Thank you for your assistance!
Greg-DB
2 months agoDropbox Staff
ABDUL Salam Thanks for sharing the sample. It looks like this is hitting an internal constraint. We'll look into what we may be able do about that. In the meantime, to work around this, you may want to add an automatic retry or two (i.e., starting at save_url again for the relevant URL) when this occurs.
- ABDUL Salam2 months agoExplorer | Level 3
Thanks for your quick response Greg-DB I appreciate your help in looking into the internal constraint. I’d be happy to stay updated on any developments regarding that.
I understand the need for a workaround, but I was hoping to minimize extra API calls in my script, particularly with the save URL and status checker endpoint. In the meantime, I’ll go ahead and implement the retry mechanism to reduce the impact.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!