-
Notifications
You must be signed in to change notification settings - Fork 462
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
Retry HTTP downloads for 5xx errors #479
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dmacvicar
force-pushed
the
dmacvicar_download_retry
branch
from
November 14, 2018 23:30
24cd20e
to
4c7554c
Compare
MalloZup
reviewed
Nov 15, 2018
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.
looks really good and clean 🎸 i added just some minor comments.
dmacvicar
force-pushed
the
dmacvicar_download_retry
branch
from
November 15, 2018 21:07
4c7554c
to
6e6440f
Compare
Incorporated latest feedback from @MalloZup. Waiting for tests. |
MalloZup
approved these changes
Nov 15, 2018
dmacvicar
changed the title
WIP: Retry HTTP downloads for 5xx errors
Retry HTTP downloads for 5xx errors
Nov 19, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements what is suggested on #455
Most of the work was to do the proper testcase.
I also discovered a bug: we where not erroring at all for non-200 codes. We ignored this part of the documentation:
So Import did not error, and the error we spit to the user was probably some garbage when trying to read an empty response. This is now fixed in 5fa3124
TODO