Skip to content
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

pip cannot read response from proxy connection: malformed HTTP status code "html" #55

Open
ermakov0 opened this issue Jan 29, 2024 · 0 comments

Comments

@ermakov0
Copy link

$ escobar -d http://proxy.evil.corp:3128 -vvv
{"level":"info","ts":1706514562.1366453,"msg":"Listening socket","address":"127.0.0.1:3128"}
{"level":"info","ts":1706514562.1369123,"msg":"Serving HTTP requests","address":"127.0.0.1:3128"}
{"level":"info","ts":1706514562.1369123,"msg":"Listening and serving HTTP requests","address":"127.0.0.1:3129"}
{"level":"debug","ts":1706514562.1409388,"msg":"Request started","http_proto":"HTTP/1.1","http_method":"CONNECT","user_agent":"Go-http-client/1.1","uri":"www.google.com:443"}
{"level":"debug","ts":1706514562.2087035,"msg":"CONNECT tunnel opened","http_proto":"HTTP/1.1","http_method":"CONNECT","user_agent":"Go-http-client/1.1","uri":"www.google.com:443"}
$ export | grep proxy
declare -x http_proxy="http://127.0.0.1:3128"
declare -x https_proxy="http://127.0.0.1:3128"
declare -x no_proxy=".evil.corp,localhost,127.0.0.1
$ pip install yt-dlp -vvv
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Using pip 20.3.4 from /usr/lib/python2.7/site-packages/pip (python 2.7)
Defaulting to user installation because normal site-packages is not writeable
Created temporary directory: /tmp/pip-ephem-wheel-cache-iq8ggh
Created temporary directory: /tmp/pip-req-tracker-fK4gKe
Initialized build tracking at /tmp/pip-req-tracker-fK4gKe
Created build tracker: /tmp/pip-req-tracker-fK4gKe
Entered build tracker: /tmp/pip-req-tracker-fK4gKe
Created temporary directory: /tmp/pip-install-1VeclH
1 location(s) to search for versions of yt-dlp:
* https://pypi.org/simple/yt-dlp/
Fetching project page and analyzing links: https://pypi.org/simple/yt-dlp/
Getting page https://pypi.org/simple/yt-dlp/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/yt-dlp/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
Incremented Retry for (url='/simple/yt-dlp/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 502 Bad Gateway',))': /simple/yt-dlp/
{"level":"debug","ts":1706514592.1841815,"msg":"Request started","http_proto":"HTTP/1.0","http_method":"CONNECT","user_agent":"","uri":"pypi.org:443"}
{"level":"error","ts":1706514592.1899867,"msg":"https: proxy error","http_proto":"HTTP/1.0","http_method":"CONNECT","user_agent":"","uri":"pypi.org:443","error":"cannot read response from proxy connection: malformed HTTP status code \"html\""}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant