-
Notifications
You must be signed in to change notification settings - Fork 141
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
Failed to mirror package via Proxy Server since version 4.0.0 #504
Comments
Works well with 3.6.0, introduced in version 4.0.0 |
Hi, thanks for reporting. 4.0.0 got a complete move from requests (urllib3) to aiohttp. So, here it seems you use a HTTPS proxy? It seems so from the connect to local host on 443: raise OSError(err, f'Connect call failed {address}') Can you give me a little more detail:
I’m going to check two things here:
If you are using https can you try with http or socks protocols? |
Hi Cooper, Best Regard's |
Seen we do not respect the environment vars for proxy settings for the xmlrpc calls. I've put up a quick workaround, but I feel the real fix is to use To test my workaround you can via:
Would love to know if that makes it work. |
Good news it works very well.
Thank you so much |
I suppose the xmlrpc_proxy branch well be merge in master soon ? Thank's |
I'll try get it in there and release this week. I'm going to fix the aiohttp-xmlrpc client to use the same client session as the main file downloading to only have one aiohttp session open during the mirror run. |
I have a similar issue because we use a socks5 proxy in our environment. With the latest 4.1.0, I get the error The command we use to run bandersnatch (worked OK in 3.6)
ANy insights will be appreciated. |
In 4.0 we went from the requests library to aiohttp. As stated, it seems aiohttp does not support socks proxy servers (sorry). Can you enable http on your proxy? If not, I’ll accept PRs adding socks support to aiohttp if we can. |
It is not possible to enable http on the proxy so I guess I'll stick to 3.6 for the time being. There are however socks connectors for aiohttp, like this . Would it be possible to use a connector with existing code? |
Sure would be possible. I'll open an issue. |
Since version 4.0.0 of bandersnatch , I can't use my proxy with environment variables
http_proxy or https_proxy
The text was updated successfully, but these errors were encountered: