Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Dushyant
7 years agoExplorer | Level 3
Strategy for integration with Dropbox API
Hi! We have designed a workflow application that relies heavily on the fine file handling capabilities of Dropbox. Basically we have a server side application that moves files(high grade images in t...
Greg-DB
Dropbox Community Moderator
7 years agoThe 'too_many_write_operations' error indicates "lock contention". That's not explicit rate limiting, but rather a result of how Dropbox works on the backend. This is a technical inability to make a modification in the account or shared folder at the time of the API call. This error indicates that there was simultaneous activity in the account or shared folder preventing your app from making the state-modifying call (e.g., adding, editing, moving, or deleting files) it is attempting. (It's not based on using a single access token; technically it's per-namespace. The Namespace Guide has more information on what namespaces are.)
The simultaneous activity could be coming from your app itself, or elsewhere, e.g., from the user's desktop client. It can come from the same user, or another member of a shared folder. You can find more information about lock contention here:
https://www.dropbox.com/developers/reference/data-ingress-guide
In short, to avoid this error, you should avoid making multiple concurrent state modifications. E.g., don't issue multiple such requests at a time, and use batch endpoints whenever possible. That won't guarantee that you won't run in to this error though, as contention can still come from other sources, so you may also want to implement automatic retries in your app.
So, for the 'too_many_write_operations' issue, reducing the batch size wouldn't necessarilly help (and in fact may make it worse; the batch methods are preferred since they only take one call for all files in the batch).
The 'internal error' issue may be somewhat alleviated by reducing the batch size though. If you share a failed job ID for one of those, we can look into it to see if we can offer any more specific insight. Feel free to open an API ticket if you wish to share it privately.
About Discuss Dropbox Developer & API
Make connections with 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!