anqian528/chat2api 设置代理报错如何解决

PROXY_URL=http://127.0.0.1:8433

2024-06-17 21:24:54,194 | INFO | Retry 1 status code 500, Failed to perform, curl: (7) Failed to connect to 127.0.0.1 port 8433 after 2037 ms: Couldn’t connect to server. See libcurl - Error Codes first for more details… Retrying…
2024-06-17 21:24:56,211 | INFO | Retry 2 status code 500, Failed to perform, curl: (7) Failed to connect to 127.0.0.1 port 8433 after 2009 ms: Couldn’t connect to server. See libcurl - Error Codes first for more details… Retrying…
2024-06-17 21:24:58,243 | INFO | Retry 3 status code 500, Failed to perform, curl: (7) Failed to connect to 127.0.0.1 port 8433 after 2025 ms: Couldn’t connect to server. See libcurl - Error Codes first for more details… Retrying…

docker 部署的还是 python 运行的
代理服务器运行正常吗?看信息是连接超时,用指令测试一下:
curl -x http://127.0.0.1:8433 ipinfo.io
代理服务器正常的话应该能看到和本地IP不同的IP信息

window 本地跑的代码linux 也报这个错

hostinger美国机器,并发不高的话,不挂代理,报错率是很低的。

有没有一种可能,是你不应该用127.0.0.1,因为127.0.0.1代表的是chat2api而不是宿主机?

有道理,分配给linux的和windows ip不同

没用docker 直接源码运行

从内容看就是端口不通
其他的能通过8433端口访问就chat2api不行么

8433端口 是 glider 的代理,浏览器用都没问题

看一下issue,拉到最后有关于这个的讨论: