Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@Machine-Maker

Description

@Machine-Maker
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.