Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the upload code self-healing #5

Open
coryrwest opened this issue Oct 24, 2017 · 0 comments
Open

Make the upload code self-healing #5

coryrwest opened this issue Oct 24, 2017 · 0 comments
Assignees

Comments

@coryrwest
Copy link
Owner

coryrwest commented Oct 24, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant