-
Notifications
You must be signed in to change notification settings - Fork 374
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
Fixing hanging uploads #809
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
attempt++ | ||
if attempt > client.maxRetry { | ||
return resp, fmt.Errorf("request failed after %v retries with err: %v", client.maxRetry, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with error
?
@tanema were you able 🎩 locally? Guess it may be awkward. |
I tophatted it with slow/timeouts and rate limits as well as the no host error/no connection errors. |
fixes #790
fixes #801
fixes #810
Re-evaluating the retry mechanism, I realized that there was a fault in the if statements where the attempt count would only get incremented on timeouts and not for all other errors like 500s.
Here is the logic now
Warn Checklist