We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.

Forum Discussion

Stephen N.5's avatar
Stephen N.5
New member | Level 1
10 years ago

Get "Retry-After" header in Android

I'm working on the error-handling for my new Android app right now and can't seem to figure out where to extract the "Retry-After" header if a 429 error is returned. The javadocs seem to have nothing on this. I'm using the Dropbox Android SDK 1.6.3.

I am using e.error in my catch(DropboxServerException e) block to get the error code. Will the retry-after header be in e.body.error? I would test this myself but I'd like to avoid actually hitting the API call limit just to find the retry-after number.

 

Thoughts?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Unfortunately, the Android Core SDK doesn't currently expose the Retry-After header, but I'll be sure to pass this along as a feature request.

About Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,875 PostsLatest Activity: 2 years ago
323 Following

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 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!