B2.NET icon indicating copy to clipboard operation
B2.NET copied to clipboard

Make the upload code self-healing

Open coryrwest opened this issue 8 years ago • 0 comments

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

coryrwest avatar Oct 24 '17 17:10 coryrwest