Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi All,
I am currently experiencing a peculiar issue. I am retrieving and tracking the state of folders using files_list_folder, files_list_folder_continue and files_list_folder_longpoll. The process is as follows:
1) If a cursor does not exist - call files_list_folder to get the state of the folder
2) Loop over the entries, if the has_more flag is true, call files_list_folder_continue
3) Keep doing the above until the has_more flag is false,
4) Once the initial state is captured from the above steps, call files_list_folder_longpoll to listen for changes
This works across multiple folders. However, with a certain folder, the files_list_folder_continue prematurely flags has_more as false. It then goes into the longpoll loop and continuously breaks the poll, returning a folder metadata object with the initial folder path in the files_list_folder call. This loops continues.
The following has been checked:
- The same cursor is not being reused (new cursors are being generated)
- The problem can be reproduced in the python console
Is there any known issue that could cause this?
Thanks for the report. We'll need to look into this specifically. Can you open an API ticket and share the affected account ID, and and some output showing the loop, including a few cursors? Be sure to redact any access/refresh tokens though. Thanks in advance!
Hi there!
If you need more help you can view your support options (expected response time for a 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!