Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Craig S.28
8 years agoNew member | Level 2
API v2 how to test reset (with list_folder)
Just porting my app to use v2 API. Previously I would use the /delta feature to keep a local cache of file/folder names etc. Now I'm using the /list_folder endpoint and all is working ok.
One thing I want to test is when the server returns a 'reset' error to indicate that I must regenerate my cache. Anyone know how to trigger one of those?
Thanks
Craig
- The reset error should be relatively rare, for example, in the case where maintenance requires us to reset that cursor state.
We don't have a way to simulate this response unfortunately, but I'll be sure to pass this along as a feature request.
One edge case where you can force this though is with app folder app by deleting the app folder and relinking. That is:
1) Link an app folder app.
2) Get a cursor.
3) Delete the app folder (e.g., via dropbox.com).
4) Get a new access token (which creates a new app folder).
5) Call list_folder/continue using the cursor from 2.
That's a bit of work though, so for the sake of testing your app, it's probably easier to just mock it/force your app through that code path.
1 Reply
Replies have been turned off for this discussion
- Greg-DB8 years ago
Dropbox Community Moderator
The reset error should be relatively rare, for example, in the case where maintenance requires us to reset that cursor state.
We don't have a way to simulate this response unfortunately, but I'll be sure to pass this along as a feature request.
One edge case where you can force this though is with app folder app by deleting the app folder and relinking. That is:
1) Link an app folder app.
2) Get a cursor.
3) Delete the app folder (e.g., via dropbox.com).
4) Get a new access token (which creates a new app folder).
5) Call list_folder/continue using the cursor from 2.
That's a bit of work though, so for the sake of testing your app, it's probably easier to just mock it/force your app through that code path.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!