We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Kestas P.
11 years agoNew member | Level 1
Failed to grab locks
We are making simple file copying files via Dropbox API and getting exceptions like
com.dropbox.core.DbxException$RetryLater: {"error": "Failed to grab locks for 954581991: lock held by connect...
Greg-DB
Dropbox Community Moderator
11 years agoThe "Failed to grab locks for" message indicates a technical inability to make the state modification in the account at the time of the API call. This error generally indicates that there was simultaneous activity in the account preventing your app from making the state-modifying call (e.g., adding, copying, or removing files) it is attempting. The simultaneous activity could be coming from your app itself, or elsewhere, e.g., from the user's desktop client. The best practice when receiving this is to just retry the request, respecting the `Retry-After header if given, or after a small delay possibly with an exponential back-off. If the activity is coming from your own app, you should avoid making multiple state-modifying calls in the same account at the same time.
I don't believe API v2 would improve this, as this is how the Dropbox backend itself works.
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!