Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
elsigh
6 years agoHelpful | Level 5
filesListFolderLongpoll fires changes: without changes within the folder
I have a folder and I get a cursor for it and call filesListFolderLongpoll...
If I go to the parent folder of the folder I'm polling and add a file to it, the longpoll returns for the child fol...
Greg-DB
Dropbox Community Moderator
6 years agoThanks for the report. For clarity though, can you also share the code and parameter values you're using, e.g., for filesListFolder, filesListFolderContinue, and filesListFolderLongpoll? That would help make sure we investigate the right scenario.
Also, when you say this "results in a false positive change-loop", do you mean you're getting stuck in a `changes:true` -> ` "entries": [], ...,"has_more": false` infinite loop, or does that happen just once per change?
- elsigh6 years agoHelpful | Level 5
Sure! Here's how I repro'd it on my side:
I called https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder/get_latest_cursor
with path: "/Apps/Songbook.Studio/Library" (if you need ids from me instead let me know)
then I called https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder/longpoll
with cursor: "AAHYcbsJjEIIcObeUpf7Uu9QgkTFe0-6zAH3f43ypSgDm035GKew13WormET99lOBzz9Z9HCKOEapDe_Gp4fCP0TqDKb_FF6yHe6RnACghIQJSa7XT4HrKj2wKFvAFsWOl89bqvtBD0VYZ4JPvGzpmuSJ_xyjFjJH9-SnkxRe7Q0148beWvf71Jk68ukBNnsawn7jutFHLzS82LzJhA4y4z2fNjMvTx9yB8c61gakAVkGhG7v73CsiFpNNHfcxzbqpE"
it sits and spins...
I went to the Dropbox web UI and dragged/dropped a test image file (foo.png) into the parent folder: "/Apps/Songbook.Studio"
the longpoll returns with `changes: true` at this point
I call https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder/continue
with cursor: "AAHYcbsJjEIIcObeUpf7Uu9QgkTFe0-6zAH3f43ypSgDm035GKew13WormET99lOBzz9Z9HCKOEapDe_Gp4fCP0TqDKb_FF6yHe6RnACghIQJSa7XT4HrKj2wKFvAFsWOl89bqvtBD0VYZ4JPvGzpmuSJ_xyjFjJH9-SnkxRe7Q0148beWvf71Jk68ukBNnsawn7jutFHLzS82LzJhA4y4z2fNjMvTx9yB8c61gakAVkGhG7v73CsiFpNNHfcxzbqpE"
and the response is:
{ "entries": [], "cursor": "AAHp_o9htUtsuvBy6ZLjlTyxIetGJZKp64hcFe641rOod28dbdiXDDw18CXg4T1DtBXDPexxpdzO9K8x8s7iX6YDB6XLcyzAJCPwb5xQuXSyXEbnjOEptD1xNvCUAG0hxxnWN5TgPl3fd-urlcaMtmzvt-0rVRg-RmKxJsbgp_7cKMrccWDoodbQFmNe2DrvY0nSgedfTcMxzWktRANN0hP8zzsv9uXrR4vZgoNaYPEv7BKQLZgdgBCiZHJvV1__tQ4h0AOpFvFK67An_KMgMgJwDZMQ7DnckIBAfoboOrJm5g", "has_more": false }
What I mean by the loop in my situation is that everytime I get a new cursor I update a file "/Apps/Songbook.Studio/.preferences.json" as my "durable storage" for the user's last update. When I do that, it triggers the longpoll's to return with the cycle described, so I have a kind of infinite back and forth.
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!