We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
mepard
4 years agoNew member | Level 2
504 Gateway Timeout listing files in 2 accounts with code that had been working
On 5-Jan-2022 just after 3:00 CST, notify.dropboxapi.com/2/files/list_folder/longpoll quit returning any changes or api.dropboxapi.com/2/files/list_folder/continue quit returning any files (could be ...
Greg-DB
Dropbox Community Moderator
4 years agoThanks for the report! Like in the other thread you linked to, this 504 error can be related to these operations taking a long time due to a large number of files and/or a large amount of file activity in the affected account(s). That can vary over time due to account activity and other such factors though. We'll look into it.
You may be able to workaround this issue by setting recursive=false on /2/files/list_folder so I recommend giving that a try (though that may require updating your implementation accordingly).
- mepard4 years agoNew member | Level 2
Turns out a subtle but reasonable change to Dropbox upload responses uncovered a bug in our prototype devices. That caused the lack of listed files and also caused a lot of retries, which probably triggered the 504s when I dumped the cursors and restarted the listing. I resurrected the cursors and listings work now. Thanks for investigating.
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!