Skip to content

Make the upload code self-healing #5

Description

@coryrwest

There are certain error messages we get from the B2 api that point to a resolvable issue (such as needing a new uploadUrl).

Errors that indicate that we need a new uploadUrl

  • Request Timeout (408)
  • Any 5xx error
  • Too Many Requests (429)
  • Unauthorized (401) and an error code of expired_auth_token
  • Broken pipe

When one of the above errors happens do the following internally:

  • Get new UploadUrl or get new Auth Token
  • Try upload again

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions