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

requests.exceptions.ProxyError #2

Open
flyingantwjy opened this issue Jul 31, 2023 · 8 comments
Open

requests.exceptions.ProxyError #2

flyingantwjy opened this issue Jul 31, 2023 · 8 comments

Comments

@flyingantwjy
Copy link

requests.exceptions.ProxyError: HTTPSConnectionPool(host='claude.ai', port=443): Max retries exceeded with url: /api/organizations (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000279EFE8C1C8>: Failed to establish a new connection: [WinError 10061]
由于目标计算机积极拒绝,无法连接。')))

@QvQQ
Copy link

QvQQ commented Jul 31, 2023

@flyingantwjy 把claude_api.py文件末尾的代理地址换成你自己的就可以了。

@m89498837
Copy link

@flyingantwjy 把claude_api.py文件末尾的代理地址换成你自己的就可以了。
请问怎么换?

@flyingantwjy
Copy link
Author

flyingantwjy commented Aug 9, 2023 via email

@QvQQ
Copy link

QvQQ commented Aug 9, 2023

看这个作者新增的doc代理设置

@flyingantwjy
Copy link
Author

flyingantwjy commented Aug 9, 2023 via email

@flyingantwjy
Copy link
Author

现在出现这个问题了:File "e:/人工智能/claude/Claude2-PyAPI-master/Claude2-PyAPI-master/console_chat.py", line 27, in main
conversation_id = conversation['uuid']
KeyError: 'uuid'

@wwwzhouhui
Copy link
Owner

以上问题都是因为国内网络的问题,我前几天更新了代码,通过代理方式解决。
env 配置文件增加

HTTP_PROXY="http://127.0.0.1:10809"
HTTPS_PROXY="https://127.0.0.1:10809"
#SOCKS5_PROXY="socks5://127.0.0.1:10808"
ISPROXY=True
参考这地方
另外感谢 @QvQQ 给出的解答。

@wwwzhouhui
Copy link
Owner

@flyingantwjy 代理配置的时候不要使用带有TLS 方式。端口不要使用443端口访问的,因为需要客户端证书配置,这个代码需要修改比较麻烦,所以建议代理走80端口访问

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

4 participants