Skip to content

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

@Machine-Maker

Description

@Machine-Maker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions