-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Allow retries for 500 error code. #9919
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
Conversation
Also, properly handles the case where retries all fail.
|
We require contributors to sign our Contributor License Agreement, and we don't have one on file for @bnemanich. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
|
We require contributors to sign our Contributor License Agreement, and we don't have one on file for @bnemanich. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@jjhelmus Do you have any opinions on this PR? |
mcg1969
left a comment
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.
This makes good sense. Thank you!
|
Hi there, thank you for your contribution to Conda! This pull request has been automatically locked since it has not had recent activity after it was closed. Please open a new issue or pull request if needed. |
I needed to enable retries for a 500 error code. When testing this out, it appeared that retries weren't being done for any error codes, so I added the default codes that urllib3 normally retries on. I also found that if the retry limit had been reached, conda would crash with an unhandled exception. This was solved by adding the
raise_on_statusflag.This was tested using the following web serving script to return errors:
Once the web server was running, the following command was used to test the retry capabilities:
conda install -c "http://localhost:8090" conda