-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download wheel to disk when streaming unzip failed with HTTP streamin…
…g error (#5094) ## Summary Workaround the `stream_wheel` not retry issue [found](#3514 (comment)) in #3514, it's not a perfect solution but I think it's acceptable because the error should not occur frequently. ## Test Plan Manually using `iptables -A OUTPUT -p tcp -dport 3128 -j REJECT --reject-with tcp-reset` to inject connection reset error to the HTTP proxy that proxies PyPI requests. ``` error: Failed to prepare distributions Caused by: Failed to fetch wheel: piqp==0.4.1 Caused by: Request failed after 3 retries Caused by: error sending request for url (https://files.pythonhosted.org/packages/94/4d/09ade94dfda5b57c1ca43564541871bd1a0d89dfd3c368ac505b6ca09831/piqp-0.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl) Caused by: client error (Connect) Caused by: tcp connect error: Connection refused (os error 111) Caused by: Connection refused (os error 111) ```
- Loading branch information
Showing
4 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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