cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you are transferring a single drive, a team or an entire organization, Movebot's cloud migration tool has been built to make your Dropbox migration simple - learn all about it here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Java API constant too_many_requests

Java API constant too_many_requests

kalumet
Explorer | Level 3

Hey there,

 

I have a small application that does the following:

Download 2 Files locally.

Modify those 2 files programatically.

Wait 1 Minute.

Upload File 1.

Wait 1 Minute.

Upload File 2.

 

Usually, i do this once per day.

Although I wait 1 Minute before doing requests I still get these errors on a regular basis with the following error message:
com.dropbox.core.RateLimitException: {"error_summary": "too_many_requests/..", "error": {"reason": {".tag": "too_many_requests"}, "retry_after": 15}}

What can I do about it? As far as i know, i only make for requests?

 

Many thanks!

1 Reply 1

Re: Java API constant too_many_requests

Greg-DB
Dropboxer

There are a number of reasons you can get a rate limiting response, e.g., due to the number of calls your app is making, or for other reasons such as other activity on the account or general Dropbox service issues.

 

In any case that you do get one of these though, the best practice is to retry the request, respecting the Retry-After header/'retry_after' value, if given, or using an exponential back-off, if not.

 

Can you have your app automatically retry the request after the specified number of seconds? Please let me know if that does or doesn't help.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?