We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
sunyi000
7 years agoExplorer | Level 3
dropbox saver questions
I have a website uses the Dropbox saver and chooser to upload/download files. The saver stopped working..(it worked last week..) The error I got is 'Job reached max retry attempts'..even the file is...
- 7 years ago
I see that you're supplying a 'localhost' URL to the Saver. This won't work, unfortunately, as that URL is not Internet-accessible.
The Saver works by having the Dropbox servers themselves access the supplied URL to retrieve the file data. The local client (i.e., the browser in this case) does not actually do the transfer itself, in order to avoid an unnecessary extra round trip of downloading and re-uploading the data. Files hosted locally on your machine aren't accessible to the Dropbox servers though, so it will fail.
You'll need to switch to using an Internet-accessible URL for the file to make this work.
sunyi000
Explorer | Level 3
Thanks for the response.
The website is running locally on http://localhost...the saver is an plugin to the website. So user select local file via the portal, the path of the selected file is then posted to an api endpoint to create dropbox tempurl for the selected file. The response of returned from the api call looks like this
{url: "http://localhost:8889/tmpurl/dropblox%20%281%29.png?dltoken=WpXmKTjiTocz-RRfNzZb3JwX6qYba2NjTb_h1N7vBZM", name: "dropblox (1).png", token: "WpXmKTjiTocz-RRfNzZb3JwX6qYba2NjTb_h1N7vBZM"}
then, i created 'files' array of dropbox options using the 'url' and 'name' in the above response
[{url: "http://localhost:8889/tmpurl/dropblox%20%281%29.png?dltoken=XlxnWTM1QmAeeTO4de42ffxI1hHFfOyGv94VkJV4iZk", filename: "dropblox (1).png"}]
together with other 'success, progress, cancel, error, then I just call
Dropbox.save(options)
after 10-20 seconds, I got the 'job reached maximum retry attempts' error.
if I copy and paste the file tempurl into browser, the browser downloads the file straight away...
Greg-DB
7 years agoDropbox Staff
I see that you're supplying a 'localhost' URL to the Saver. This won't work, unfortunately, as that URL is not Internet-accessible.
The Saver works by having the Dropbox servers themselves access the supplied URL to retrieve the file data. The local client (i.e., the browser in this case) does not actually do the transfer itself, in order to avoid an unnecessary extra round trip of downloading and re-uploading the data. Files hosted locally on your machine aren't accessible to the Dropbox servers though, so it will fail.
You'll need to switch to using an Internet-accessible URL for the file to make this work.
- sunyi0007 years agoExplorer | Level 3
ah.. yes I just moved the web to a cloud server and it worked...sorry the question is a bit dumb...:slight_smile:
Thanks...
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!