-
Notifications
You must be signed in to change notification settings - Fork 415
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
The design of .Retry() is wrong #168
Comments
Agree with you! When the error returned by |
+1 |
1 similar comment
+1 |
Also, any retry logic specified in Client/transport is overwritten |
wklken
added a commit
to wklken/gorequest
that referenced
this issue
Jan 9, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current .Retry() mechanism only works when server successfully responds with a specific set of http codes. But in other scenarios, http requests might fail because of network connectivity problem, insufficient OS resource, etc, which will only exit at the first return(see above) , without proper retries.
The text was updated successfully, but these errors were encountered: