dropbox / dropbox-sdk-java

A Java library for the Dropbox Core API.
https://www.dropbox.com/developers/documentation/java
MIT License
593 stars 447 forks source link

SDK Should wrap HTTP 504 Gateway Timeout into RetryException #550

Open im2703 opened 1 week ago

im2703 commented 1 week ago

The DbxClientV2 request configuration supports automatic retries on transient errors, such as due to rate limiting.

Sometimes Dropbox API returns an error HTTP 504 Gateway Timeout. This will fail the request with BadResponseCodeException .

It would make sense to interpret HTTP 504 also as a transient error, and support optional automatic retries.

greg-db commented 1 week ago

Thanks! I'll pass this along as a feature request, but I can't promise if or when it might be implemented.