dropbox-sdk-python icon indicating copy to clipboard operation
dropbox-sdk-python copied to clipboard

Retry on error doesn't account for 5xx error on token refresh

Open Machine-Maker opened this issue 4 months ago • 1 comments

Describe the bug I have a client object set with the default retry on error (4), but I got an unexpected exception dropbox.exceptions.InternalServerError: InternalServerError('', 500, '{"error": "The server has either erred or is incapable of performing the requested operation."}') during the refresh operation. I tried the same credentials, and it works fine now, so it just seems like a one time fluke on dropbox backend. I expected the retries on error to be applied to these requests, but it seems like they aren't.

To Reproduce I guess you can use some mocking framework to simulate a 500 response from a refresh token call and see how it makes calls fail.

Expected Behavior The max retries on error should apply to all requests.

Actual Behavior See description

Versions

  • What version of the SDK are you using? 12.0
  • What version of the language are you using? 3.13.7

Additional context Add any other context about the problem here.

Machine-Maker avatar Sep 11 '25 16:09 Machine-Maker

Hi @Machine-Maker

Thanks for the report! We're investigating this API issue. We'll follow up here once we have an update.

alyx-db avatar Sep 11 '25 17:09 alyx-db