You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
bcd_nyc
7 years agoExplorer | Level 4
Too many write operations when moving a folder
{"error_summary": "too_many_write_operations/...", "error": {"reason": {".tag": "too_many_write_operations"}}} I am getting this error when using the V2 API (via PHP & curl) to move a folder with...
- 7 years ago
The error 'too_many_write_operations', indicates that the operation failed due to "lock contention". This isn't explicit rate limiting, but rather an inability to perform multiple state modifications in the same account at the same time.
This can vary over time, based on how much activity is occurring in the account. Note that the simultaneous changes can be from either the app itself, or other clients acting on the account. (E.g., the official Dropbox desktop client, another API app, a Dropbox mobile app, etc.)
If you haven't already read it, I recommend the data ingress guide, which goes over this in more detail:
https://www.dropbox.com/developers/reference/data-ingress-guideAlso, for moving multiple files, it's best to use /2/files/move_batch in order to move multiple at a time:
https://www.dropbox.com/developers/documentation/http/documentation#files-move_batch
This can help avoid lock contention with your own calls (e.g., if you were making multiple calls to the non-batch version) by sending the operations all together. Note that it's always possible that some other client is making changes though, so you should still catch any 429 or 503 and retry the request, respecting the Retry-After header if given in the response, or using an exponential back-off, if not.
Greg-DB
7 years agoDropbox Staff
The error 'too_many_write_operations', indicates that the operation failed due to "lock contention". This isn't explicit rate limiting, but rather an inability to perform multiple state modifications in the same account at the same time.
This can vary over time, based on how much activity is occurring in the account. Note that the simultaneous changes can be from either the app itself, or other clients acting on the account. (E.g., the official Dropbox desktop client, another API app, a Dropbox mobile app, etc.)
If you haven't already read it, I recommend the data ingress guide, which goes over this in more detail:
https://www.dropbox.com/developers/reference/data-ingress-guide
Also, for moving multiple files, it's best to use /2/files/move_batch in order to move multiple at a time:
https://www.dropbox.com/developers/documentation/http/documentation#files-move_batch
This can help avoid lock contention with your own calls (e.g., if you were making multiple calls to the non-batch version) by sending the operations all together. Note that it's always possible that some other client is making changes though, so you should still catch any 429 or 503 and retry the request, respecting the Retry-After header if given in the response, or using an exponential back-off, if not.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 12 hours agoIf 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 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!