Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
jkane50
3 years agoExplorer | Level 3
get_temporary_link returns empty json string some times
Using php, I call list_folder to get a list of about 2000 files of about 800K each to download.
I then go into a loop calling get_temporary_link, retrieving the file contents and writing the file t...
Greg-DB
Dropbox Community Moderator
3 years agoI'm not aware of any issues that should currently be causing /2/files/get_temporary_link to return an empty string. Can you print out the full raw request and response (including headers and body for both) for a sample of that so we can take a look? Just be sure to redact the access token. Feel free to open an API ticket if you'd prefer to share privately.
The Dropbox API does have a rate limiting system, but any call that gets rate limited by the system would receive an error response with a relevant error status code and an error message in the response body. Make sure you're checking the status code and response body for errors, and don't have your code assume the response body will be JSON unless indicated as such by the response's Content-Type header.
jkane50
3 years agoExplorer | Level 3
I don't have a convenient way to trap sent or received headers. If there is such a utility for a hosted environment (GoDaddy) please let me know.
My code works 99% of the time so it's an internet issue or metering issue.
Version 1 of my code was a feasibility study and I didnt add code to capture http response codes but have now.
If the errors continue to happen, I'll post again with that info.
I still would like to know the metered rate and code for it so if you have it, please provide!
- Greg-DB3 years ago
Dropbox Community Moderator
Thanks for following up. Please do let me know if you can reproduce and share information about that issue. I can't provide guidance on configuring third party environments such as GoDaddy though.
We don't have specific rate numbers documented for the rate limiting system; apps should be written to handle these rate limit responses automatically/dynamically based on the response. Also note that not all responses with a 429 or 503 status code indicate explicit rate limiting, but in any case that you get a response with 429 or 503 status code the best practice is to retry the request, respecting the Retry-After header if given in the response, or using an exponential back-off, if not. I recommend referring to the error documentation and Error Handling Guide for more information.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!