Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

http代理协议入站和pip不兼容?[Bug] #260

Open
bash99 opened this issue Apr 12, 2023 · 2 comments
Open

http代理协议入站和pip不兼容?[Bug] #260

bash99 opened this issue Apr 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@bash99
Copy link

bash99 commented Apr 12, 2023

Describe the bug【描述 bug】
服务器上启动verysimple客户端,入站
···
[[listen]]
protocol = "http"
host = "127.0.0.1"
port = 10268
···

pip3用此代理安装会报错
To Reproduce【如何复现该bug】
执行

 pip3 --proxy http://localhost:10268 search numpy

响应

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response'))': /pypi

verysimple这边log的错误

2023-04-12 15:02:09.320 INFO    New Accepted Conn       {"connid": 885235, "from": "127.0.0.1:59548", "handler": "http://127.0.0.1:10268"}
2023-04-12 15:02:09.321 WARN    Failed handshakeInserver        {"connid": 885235, "handler": "127.0.0.1:10268", "client RemoteAddr": "127.0.0.1:59548", "error": " [ get method/path failed , Detail: invalid data, Data: [CONNECT -12] ] , with Buffer,len 33"}

Expected behavior【预期的行为】
pip3能正常访问。
BTW, curl、conda都能正常,所以只是某种不兼容。但是换naive这种简单代理pip3能兼容。

Envs (please complete the following information):【系统环境】
1.2.5版本

@bash99 bash99 added the bug Something isn't working label Apr 12, 2023
@Aruelius
Copy link

可以把 http 改成 socks5http

@bash99
Copy link
Author

bash99 commented Apr 23, 2023

可以把 http 改成 socks5http

这样倒是pip3用sock5访问能过,不过http入站可能还是算有点兼容性问题。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants