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
error 111错误 “我连接不到你的网络‘ #1930
Comments
看看你的open_ai_api_base的键值对 是不是正确的。 |
我也是这个问题 |
我之前用的是docker部署,只配置了proxy,没配置base,现在用了个服务器域名来做base |
这是我的docker配置文件 |
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:28][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f456ed49f30>: Failed to establish a new connection: [Errno 111] Connection refused'))) |
我也是这个问题,在open_ai_api_base改好了base_url,不管怎么弄都会转到api.openai.com上面去。 |
前置确认
操作系统类型?
Windows
运行的python版本是?
python 3.7
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wxy(个人微信, wechaty)
复现步骤 🕹
chatgpt-on-wechat | [INFO][2024-04-29 11:35:28][chat_gpt_bot.py:49] - [CHATGPT] query=你好
问题描述 😯
(1)在clash的规则模式下,PAC模式已开
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:28][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f456ed49f30>: Failed to establish a new connection: [Errno 111] Connection refused')))
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:33][chat_gpt_bot.py:160] - [CHATGPT] 第1次重试
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:33][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f456ed49720>: Failed to establish a new connection: [Errno 111] Connection refused')))
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:38][chat_gpt_bot.py:160] - [CHATGPT] 第2次重试
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:38][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f456e219f30>: Failed to establish a new connection: [Errno 111] Connection refused')))
chatgpt-on-wechat | [INFO][2024-04-29 11:35:38][wechat_channel.py:217] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
chatgpt-on-wechat | 我连接不到你的网络), receiver=@b6a2f363f5d533dc8ae2653461ebc578043d37fb1f5d1486a1f8c83cffce7ed
(2)先扫码登陆后开启clash全局模式下的反馈
[CHATGPT] APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe110fdbc10>: Failed to establish a new connection: [Errno 111] Connection refused')))
终端日志 📒
(1)
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:28][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f456ed49f30>: Failed to establish a new connection: [Errno 111] Connection refused')))
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:33][chat_gpt_bot.py:160] - [CHATGPT] 第1次重试
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:33][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f456ed49720>: Failed to establish a new connection: [Errno 111] Connection refused')))
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:38][chat_gpt_bot.py:160] - [CHATGPT] 第2次重试
chatgpt-on-wechat | [WARNING][2024-04-29 11:35:38][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f456e219f30>: Failed to establish a new connection: [Errno 111] Connection refused')))
chatgpt-on-wechat | [INFO][2024-04-29 11:35:38][wechat_channel.py:217] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
chatgpt-on-wechat | 我连接不到你的网络), receiver=@b6a2f363f5d533dc8ae2653461ebc578043d37fb1f5d1486a1f8c83cffce7ed
(2)
[CHATGPT] APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe110fdbc10>: Failed to establish a new connection: [Errno 111] Connection refused')))
The text was updated successfully, but these errors were encountered: