Hi,
We've tested that when we created 6000 team folders (eg. under team space). The list_folder_continue api will always timeout due to long cursor.
However, even if we delete the folders to 4000, 3500,......, 1500 it still almost always timeouts (eg. the 504 gateway timeout takes 90 seconds).
Actually, when only 1000 folders, there are still chances that timeout happens when using list_folder_continue.
We've seen in the document (eg. https://help.dropbox.com/zh-tw/teams-admins/admin/member-space-limits) that 5000 shared folders should be the limit. But according to our test, it seems 1000 shared folders can also timeout oftenly.
Could you please provide a specific limit on team folders count that is guaranteed not to timeout when using list_folder_continue with cursor.
And also what leads to such a long cursor, we found that when cursor is long (eg. more than 50000 bytes), it is highly probably to timeout. Also, we found that when the folder name is longer, the cursor will also be longer, does this affect the speed?
Also, we've found that if we performed delete folders actions, and start with list_folder api from the beginning, and then list_folder_continue to keep pull data, the cursor seems also longer than that if we just simply create the same number of folders.

Thank you,
Best regards,
Ethan Fang