cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dropbox Polling Issue - caught in loop

Dropbox Polling Issue - caught in loop

DataWrangler
New member | Level 2

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?

1 Reply 1

Greg-DB
Dropbox Staff

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!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?