zhayujie / chatgpt-on-wechat

基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择GPT3.5/GPT-4o/GPT-o1/ Claude/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Claude/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
https://docs.link-ai.tech/cow
MIT License
30.56k stars 8.01k forks source link

docker 版启动不了下面是报错信息 #1293

Open nick814 opened 1 year ago

nick814 commented 1 year ago

前置确认

⚠️ 搜索issues中是否已存在类似问题

操作系统类型?

Linux

运行的python版本是?

python 3.7

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

直接 运行docker compose up -d 就报错了

问题描述 😯

我看帮助里 访问微信网站和访问google都没问题 [root@localhost docker]# wget login.weixin.qq.com --2023-07-05 10:47:17-- http://login.weixin.qq.com/ Resolving login.weixin.qq.com (login.weixin.qq.com)... 43.129.255.96, 240e:e1:a802:1::1c Connecting to login.weixin.qq.com (login.weixin.qq.com)|43.129.255.96|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://login.weixin.qq.com/ [following] --2023-07-05 10:47:18-- https://login.weixin.qq.com/ Connecting to login.weixin.qq.com (login.weixin.qq.com)|43.129.255.96|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 87921 (86K) [text/html] Saving to: ‘index.html’

100%[=================================================================>] 87,921 --.-K/s in 0.07s

2023-07-05 10:47:18 (1.29 MB/s) - ‘index.html’ saved [87921/87921]

[root@localhost docker]# wget google.com --2023-07-05 10:48:01-- http://google.com/ Resolving google.com (google.com)... 142.250.66.142, 2404:6800:4005:81d::200e Connecting to google.com (google.com)|142.250.66.142|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://www.google.com/ [following] --2023-07-05 10:48:01-- http://www.google.com/ Resolving www.google.com (www.google.com)... 142.251.220.36, 2404:6800:4005:80d::2004 Connecting to www.google.com (www.google.com)|142.251.220.36|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://www.google.com.hk/url?sa=p&hl=zh-CN&pref=hkredirect&pval=yes&q=http://www.google.com.hk/&ust=1688525311700466&usg=AOvVaw3527FznE52G4weQsusfqvF [following] --2023-07-05 10:48:01-- http://www.google.com.hk/url?sa=p&hl=zh-CN&pref=hkredirect&pval=yes&q=http://www.google.com.hk/&ust=1688525311700466&usg=AOvVaw3527FznE52G4weQsusfqvF Resolving www.google.com.hk (www.google.com.hk)... 142.251.220.3, 2404:6800:4005:80c::2003 Connecting to www.google.com.hk (www.google.com.hk)|142.251.220.3|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://www.google.com.hk/ [following] --2023-07-05 10:48:01-- http://www.google.com.hk/ Reusing existing connection to www.google.com.hk:80. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘index.html.1’

[ <=>                                                              ] 17,827      --.-K/s   in 0.03s   

2023-07-05 10:48:01 (548 KB/s) - ‘index.html.1’ saved [17827]

终端日志 📒

Traceback (most recent call last):
  File "/app/lib/itchat/utils.py", line 134, in test_connect
    r = requests.get(config.BASE_URL)
  File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 565, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.weixin.qq.com', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85e9553430>: Failed to establish a new connection: [Errno -3] Try again'))
nick814 commented 1 year ago

我的机器是直接用了到香港的专线

6vision commented 1 year ago

梯子开规则模式,不要开全局