B2.NET
B2.NET copied to clipboard
Make the upload code self-healing
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