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

扫码成功后手机端无反应 #142

Closed
PaperMisty opened this issue Feb 9, 2023 · 93 comments
Closed

扫码成功后手机端无反应 #142

PaperMisty opened this issue Feb 9, 2023 · 93 comments

Comments

@PaperMisty
Copy link

PaperMisty commented Feb 9, 2023

前置确认

  1. 运行于国内网络环境,未开代理
  2. python 已安装:版本在 3.7 ~ 3.10 之间,依赖已安装
  3. 在已有 issue 中未搜索到类似问题
  4. FAQS 中无类似问题

问题描述

手机扫码成功后,windows终端显示Start auto replying

tmp4AB4

但手机没有任何新增的窗口提供聊天

(已实名)

终端日志 (如有报错)

[在此处粘贴终端日志]

环境

  • 操作系统类型 (Mac/Windows/Linux):Windows10
  • Python版本 ( 执行 python3 -V ):python -3.10
  • pip版本 ( 依赖问题此项必填,执行 pip3 -V):
@zhayujie
Copy link
Owner

zhayujie commented Feb 9, 2023

扫码成功之后你的账号就是机器人了,需要在手机端发送消息来触发,电脑端的终端仅是显示日志。

手机端不会有新开的窗口, 你可以让好友给你发送消息, 也可以自己给好友发送消息, 只要能命中触发条件都可触发自动回复

  • 私聊中: 要发送以 single_chat_prefix配置作为前缀的消息, 如 "@bot 你好"
  • 群聊中: 好友艾特你就会触发, 你自己发送以 group_chat_prefix 配置为前缀的消息同样也会触发

@zhayujie zhayujie pinned this issue Feb 9, 2023
@NardRage
Copy link

请问一下扫描二维码老是超时应该怎么解决

@zhayujie
Copy link
Owner

请问一下扫描二维码老是超时应该怎么解决

看这个 #8

@NardRage
Copy link

NardRage commented Feb 12, 2023 via email

@szf19951023
Copy link

扫码成功之后你的账号就是机器人了,需要在手机端发送消息来触发,电脑端的终端仅是显示日志。

手机端不会有新开的窗口, 你可以让好友给你发送消息, 也可以自己给好友发送消息, 只要能命中触发条件都可触发自动回复

  • 私聊中: 要发送以 single_chat_prefix配置作为前缀的消息, 如 "@bot 你好"
  • 群聊中: 好友艾特你就会触发, 你自己发送以 group_chat_prefix 配置为前缀的消息同样也会触发

想请问一下我怎么能取消掉别人在群组中@我自动回复这个功能呢

@hankinsus
Copy link

登录成功,发送消息报错
[ERROR][2023-02-21 22:09:59][wechat_channel.py:116] - No module named 'openai'
Traceback (most recent call last):
File "/home/ubuntu/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 112, in _do_send
reply_text = super().build_reply_content(query, context)
File "/home/ubuntu/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/home/ubuntu/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content
return bot_factory.create_bot("openAI").reply(query, context)
File "/home/ubuntu/chatgpt-on-wechat/bot/bot_factory.py", line 24, in create_bot
from bot.openai.open_ai_bot import OpenAIBot
File "/home/ubuntu/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 6, in
import openai
ModuleNotFoundError: No module named 'openai'

@zhayujie
Copy link
Owner

扫码成功之后你的账号就是机器人了,需要在手机端发送消息来触发,电脑端的终端仅是显示日志。
手机端不会有新开的窗口, 你可以让好友给你发送消息, 也可以自己给好友发送消息, 只要能命中触发条件都可触发自动回复

  • 私聊中: 要发送以 single_chat_prefix配置作为前缀的消息, 如 "@bot 你好"
  • 群聊中: 好友艾特你就会触发, 你自己发送以 group_chat_prefix 配置为前缀的消息同样也会触发

想请问一下我怎么能取消掉别人在群组中@我自动回复这个功能呢

参考 #35

@zhayujie
Copy link
Owner

登录成功,发送消息报错 [ERROR][2023-02-21 22:09:59][wechat_channel.py:116] - No module named 'openai' Traceback (most recent call last): File "/home/ubuntu/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 112, in _do_send reply_text = super().build_reply_content(query, context) File "/home/ubuntu/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/home/ubuntu/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content return bot_factory.create_bot("openAI").reply(query, context) File "/home/ubuntu/chatgpt-on-wechat/bot/bot_factory.py", line 24, in create_bot from bot.openai.open_ai_bot import OpenAIBot File "/home/ubuntu/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 6, in import openai ModuleNotFoundError: No module named 'openai'

#88

@MinovskyRickland
Copy link

Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/completions (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fbea43ed880>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

升级之后api连不上了

@jiaketian
Copy link

你好,我这咋回事,就会一句话“请再问我一次吧, ”

openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001D44786DB50>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))
[INFO][2023-03-03 22:50:27][wechat_channel.py:103] - [WX] sendMsg=[bot] 请再问我一次吧, receiver=@8ee04d0292988f4d286ea29a3c92afe5afffbc4cfca74a74962f92ab5fc0d07c

@zhayujie
Copy link
Owner

zhayujie commented Mar 4, 2023

@tianjiake @MinovskyRickland
网络问题见 #310

@yinbaitao
Copy link

我每次扫描二维码后,都会有下面报错。哪位大神能告诉我该怎么解决?求教
Please scan the QR code to log in.
Please press confirm on your phone.
[ERROR][2023-03-05 12:23:08][app.py:19] - App startup failed!
[ERROR][2023-03-05 12:23:08][app.py:20] - mismatched tag: line 64, column 4
Traceback (most recent call last):
File "/root/chatgpt-on-wechat/chatgpt-on-wechat/app.py", line 17, in
channel.startup()
File "/root/chatgpt-on-wechat/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 37, in startup
itchat.auto_login(enableCmdQR=2)
File "/root/miniconda3/lib/python3.10/site-packages/itchat/components/register.py", line 35, in auto_login
self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
File "/root/miniconda3/lib/python3.10/site-packages/itchat/components/login.py", line 53, in login
status = self.check_login()
File "/root/miniconda3/lib/python3.10/site-packages/itchat/components/login.py", line 137, in check_login
if process_login_info(self, r.text):
File "/root/miniconda3/lib/python3.10/site-packages/itchat/components/login.py", line 172, in process_login_info
for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes:
File "/root/miniconda3/lib/python3.10/xml/dom/minidom.py", line 2000, in parseString
return expatbuilder.parseString(string)
File "/root/miniconda3/lib/python3.10/xml/dom/expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "/root/miniconda3/lib/python3.10/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4

@zhayujie
Copy link
Owner

zhayujie commented Mar 5, 2023

@yinbaitao 执行下下面两句
pip show itchat
pip show itchat-uos

@AthanaD
Copy link

AthanaD commented Mar 5, 2023

File "D:\Python\Python311\Lib\xml\dom\expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4

@zhayujie
Copy link
Owner

zhayujie commented Mar 5, 2023

@devinglaw #333

@xiaozhiling2
Copy link

扫码之后报:
[ERROR][2023-03-08 10:57:59][app.py:19] - App startup failed!
[ERROR][2023-03-08 10:57:59][app.py:20] - mismatched tag: line 64, column 4
Traceback (most recent call last):
File "E:\chatgpt-on-wechat\chatgpt-on-wechat-master\app.py", line 17, in
channel.startup()
File "E:\chatgpt-on-wechat\chatgpt-on-wechat-master\channel\wechat\wechat_channel.py", line 37, in startup
itchat.auto_login(enableCmdQR=2)
File "E:\python\lib\site-packages\itchat\components\register.py", line 35, in auto_login
self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
File "E:\python\lib\site-packages\itchat\components\login.py", line 53, in login
status = self.check_login()
File "E:\python\lib\site-packages\itchat\components\login.py", line 137, in check_login
if process_login_info(self, r.text):
File "E:\python\lib\site-packages\itchat\components\login.py", line 172, in process_login_info
for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes:
File "E:\python\lib\xml\dom\minidom.py", line 2000, in parseString
return expatbuilder.parseString(string)
File "E:\python\lib\xml\dom\expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "E:\python\lib\xml\dom\expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4
也运行了:
pip show itchat
pip show itchat-uos
还是无法解决

@zhayujie
Copy link
Owner

zhayujie commented Mar 8, 2023

@xiaozhiling2

正常应该是这样:
pip3 show itchat-uos # 依赖存在
pip3 show itchat # 依赖不存在

所以要把 itcaht 卸载掉, 只需要itchat-uos 依赖

@xiaozhiling2
Copy link

xiaozhiling2 commented Mar 9, 2023 via email

@zhibei2000
Copy link

扫码之后报: [ERROR][2023-03-08 10:57:59][app.py:19] - App startup failed! [ERROR][2023-03-08 10:57:59][app.py:20] - mismatched tag: line 64, column 4 Traceback (most recent call last): File "E:\chatgpt-on-wechat\chatgpt-on-wechat-master\app.py", line 17, in channel.startup() File "E:\chatgpt-on-wechat\chatgpt-on-wechat-master\channel\wechat\wechat_channel.py", line 37, in startup itchat.auto_login(enableCmdQR=2) File "E:\python\lib\site-packages\itchat\components\register.py", line 35, in auto_login self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback, File "E:\python\lib\site-packages\itchat\components\login.py", line 53, in login status = self.check_login() File "E:\python\lib\site-packages\itchat\components\login.py", line 137, in check_login if process_login_info(self, r.text): File "E:\python\lib\site-packages\itchat\components\login.py", line 172, in process_login_info for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes: File "E:\python\lib\xml\dom\minidom.py", line 2000, in parseString return expatbuilder.parseString(string) File "E:\python\lib\xml\dom\expatbuilder.py", line 925, in parseString return builder.parseString(string) File "E:\python\lib\xml\dom\expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4 也运行了: pip show itchat pip show itchat-uos 还是无法解决

解决了么,一直是这个问题

@zhibei2000
Copy link

@yinbaitao 执行下下面两句 pip show itchat pip show itchat-uos

xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4

这个问题执行完还是解决不了的

@zhayujie
Copy link
Owner

@zhibei2000 执行这两个命令只是看看依赖安装是否正常,你把执行的结果贴出来看看吧

正常应该是这样:
pip3 show itchat-uos # 依赖存在
pip3 show itchat # 依赖不存在

@xiaozhiling2
Copy link

xiaozhiling2 commented Mar 12, 2023 via email

@eshao2018
Copy link

扫码后就出一个请在手机确认的提示,手机确认后,终端无任何提示,微信已经实名老号且绑卡,但是直接扫码登陆网页版微信,提示为了保障你的帐号安全,暂不支持使用网页版微信。是微信号的问题吗

@flyleee
Copy link

flyleee commented Mar 26, 2023

发送信息后报错[ERROR][2023-03-26 15:06:52][wechat_channel.py:29] - Worker return exception: module 'openai.error' has no attribute 'Timeout'
Traceback (most recent call last):
File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 100, in reply_text
response = openai.ChatCompletion.create(
AttributeError: module 'openai' has no attribute 'ChatCompletion'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib64/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 210, in handle
reply = super().build_reply_content(context.content, context)
File "/root/chatgpt-on-wechat/channel/channel.py", line 33, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/root/chatgpt-on-wechat/bridge/bridge.py", line 42, in fetch_reply_content
return self.get_bot("chat").reply(query, context)
File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 55, in reply
reply_content = self.reply_text(session, session_id, 0)
File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 121, in reply_text
except openai.error.Timeout as e:
AttributeError: module 'openai.error' has no attribute 'Timeout'

@eshao2018
Copy link

eshao2018 commented Mar 26, 2023 via email

@jarodlong7788
Copy link

[INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin GODCMD not found in pconfig, adding to pconfig...
[INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin BANWORDS not found in pconfig, adding to pconfig...
[INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin ROLE not found in pconfig, adding to pconfig...
[INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin DUNGEON not found in pconfig, adding to pconfig...
[INFO][2023-03-27 01:27:46][plugin_manager.py:78] - Plugin HELLO not found in pconfig, adding to pconfig...
[INFO][2023-03-27 01:27:46][godcmd.py:135] - [Godcmd] inited
[WARNING][2023-03-27 01:27:46][banwords.py:41] - Banwords init failed: [Errno 2] No such file or directory: '/root/chatgpt-on-wechat/plugins/banwords/banwords.txt', ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/banwords . 我的是DOCKER上装的,二维码出现的是?号,用不了,不知道怎么弄

@ZhepengChang
Copy link

D:\project\open ai\chatgpt-on-wechat>python app.py
[INFO][2023-11-22 16:13:07][config.py:198] - 配置文件不存在,将使用config-template.json模板
[INFO][2023-11-22 16:13:07][config.py:227] - [INIT] load config: {'channel_type': 'wx', 'model': 'gpt-3.5-turbo', 'open_ai_api_key': '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', 'text_to_image': 'dall-e-2', 'voice_to_text': 'openai', 'text_to_voice': 'openai', 'proxy': '127.0.0.1:54217', 'hot_reload': False, 'single_chat_prefix': ['bot', '@bot'], 'single_chat_reply_prefix': '[bot] ', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['22222服【破阵༅相思】'], 'group_chat_in_one_session': ['22222服【破阵༅相思】'], 'image_create_prefix': ['画'], 'speech_recognition': True, 'group_speech_recognition': False, 'voice_reply_voice': False, 'conversation_max_tokens': 2500, 'expires_in_seconds': 3600, 'character_desc': '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交 流。', 'temperature': 0.7, 'top_p': 1, 'subscribe_msg': '感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。', 'use_linkai': False, 'linkai_api_key': '', 'linkai_app_code': ''}
[INFO][2023-11-22 16:13:07][config.py:177] - [Config] User datas file not found, ignore.
[ERROR][2023-11-22 16:13:07][app.py:52] - App startup failed!
[ERROR][2023-11-22 16:13:07][app.py:53] - No module named 'requests'
Traceback (most recent call last):
File "app.py", line 45, in run
channel = channel_factory.create_channel(channel_name)
File "D:\project\open ai\chatgpt-on-wechat\channel\channel_factory.py", line 13, in create_channel
from channel.wechat.wechat_channel import WechatChannel
File "D:\project\open ai\chatgpt-on-wechat\channel\wechat\wechat_channel.py", line 13, in
import requests
ModuleNotFoundError: No module named 'requests

@fengfanzhiwu
Copy link

[INFO][2023-11-30 00:04:35][chat_gpt_bot.py:49] - [CHATGPT] query=晚上好
[WARNING][2023-11-30 00:04:35][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))
[INFO][2023-11-30 00:04:35][wechat_channel.py:194] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
我连接不到你的网络), receiver=@5

@ladypiapia
Copy link

ladypiapia commented Nov 30, 2023

为啥自己给其他人发消息不会触发机器人,别人给自己私聊发消息以及自己在群里发都没问题,可以正常响应;但就是自己私聊给别人发不会触发,没有响应,这是咋回事儿?以下是我的config.json配置:

{
  "channel_type": "wx",
  "model": "gpt-3.5-turbo",
  "open_ai_api_key": "sk-yP469SimspVonANd594c708f5c084204806d44E3F7Ca",
  "text_to_image": "dall-e-3",
  "voice_to_text": "openai",
  "text_to_voice": "openai",
  "text_to_voice_model": "tts-1",
  "tts_voice_id": "alloy",
  "proxy": "",
  "hot_reload": true,
  "trigger_by_self": true,
  "single_chat_prefix": [
    "AA",
    "@robot"
  ],
  "single_chat_reply_prefix": "[bot] ",
  "group_chat_prefix": [
    "@robot",
    "A"
  ],
  "group_name_white_list": [
    "测试群-3",
    "测试群-2"
  ],
  "group_chat_in_one_session": [
    "ChatGPT测试群"
  ],
  "image_create_prefix": [
    ""
  ],
  "speech_recognition": true,
  "group_speech_recognition": false,
  "voice_reply_voice": true,
  "conversation_max_tokens": 2500,
  "expires_in_seconds": 3600,
  "character_desc": "你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。",
  "temperature": 0.7,
  "top_p": 1,
  "subscribe_msg": "感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。",
  "use_linkai": false,
  "linkai_api_key": "",
  "linkai_app_code": ""
}

@eshao2018
Copy link

eshao2018 commented Feb 21, 2024 via email

@BarryWuu
Copy link

你好,出现这个问题怎么办
[ERROR][2024-03-24 11:05:45][wechat_channel.py:135] - 'wxsid'

@eshao2018
Copy link

eshao2018 commented Mar 24, 2024 via email

@ZaleTang
Copy link

你好,出现这个问题怎么办 [ERROR][2024-03-24 11:05:45][wechat_channel.py:135] - 'wxsid'

我也遇到了同样问题,尝试了一下发现用刚注册的小号不信,试了一下用了很久的大号就好了,可能是微信那边的权限管控问题

@eshao2018
Copy link

eshao2018 commented Apr 24, 2024 via email

@chunmingdu
Copy link

Unexpected sync check result: window.synccheck={retcode:"1101",selector:"0"}

@zhangsisi1001
Copy link

@zhayujie 请教下,运行$ python app.py的时候提示ssl error.详细报错:
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\logging_init_.py", line 1113, in emit
stream.write(msg + self.terminator)
UnicodeEncodeError: 'gbk' codec can't encode character '\U0001f4d6' in position 402: illegal multibyte sequence
Call stack:
File "D:\Code\dify-on-wechat\app.py", line 71, in
run()
File "D:\Code\dify-on-wechat\app.py", line 61, in run
start_channel(channel_name)
File "D:\Code\dify-on-wechat\app.py", line 32, in start_channel
PluginManager().load_plugins()
File "D:\Code\dify-on-wechat\plugins\plugin_manager.py", line 181, in load_plugins
self.activate_plugins()
File "D:\Code\dify-on-wechat\plugins\plugin_manager.py", line 146, in activate_plugins
instance = plugincls()
File "D:\Code\dify-on-wechat\plugins\jina_sum\jina_sum.py", line 50, in init
logger.info(f"[JinaSum] inited, config={self.config}")
Message: "[JinaSum] inited, config={'jina_reader_base': 'https://r.jina.ai', 'open_ai_api_base': 'https://api.openai.com/v1', 'open_ai_api_key': 'sk-xxx', 'open_ai_model': 'gpt-3.5-turbo', 'max_words': 8000, 'white_url_list': [], 'black_url_list': ['https://support.weixin.qq.com', 'https://channels-aladin.wxqcloud.qq.com'], 'prompt': '▒▒▒▒Ҫ▒▒▒▒▒▒▒▒ı▒▒▒▒▒▒ܽᣬ▒ܽ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒֣▒\n\U0001f4d6 һ▒仰▒ܽ▒\n\U0001f511 ▒ؼ▒Ҫ▒▒,▒▒▒▒▒▒▒▒▒▒г▒3-5▒▒▒▒▒µĺ▒▒▒▒▒▒▒\n\U0001f3f7 ▒▒ǩ: #xx #xx\n▒▒ʹ▒▒emoji▒▒▒▒ı▒▒▒▒▒▒▒▒▒'}"
Arguments: ()
[INFO][2024-05-09 13:51:55][role.py:69] - [Role] inited
[INFO][2024-05-09 13:51:55][dungeon.py:56] - [Dungeon] inited
[INFO][2024-05-09 13:51:55][hello.py:24] - [Hello] inited
[INFO][2024-05-09 13:51:55][finish.py:23] - [Finish] inited
Traceback (most recent call last):
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 1099, in _validate_conn
conn.connect()
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connection.py", line 653, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connection.py", line 806, in ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\util\ssl
.py", line 465, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\util\ssl
.py", line 509, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1108, in _create
self.do_handshake()
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1379, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 491, in _make_request
raise new_e
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 847, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\util\retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='login.weixin.qq.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Code\dify-on-wechat\lib\itchat\utils.py", line 134, in test_connect
r = requests.get(config.BASE_URL)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhangsisi\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='login.weixin.qq.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))

You can't get access to internet or wechat domain, so exit.

@userboy1
Copy link

您好,请问扫码后登录微信触发关键词,没有任何反应是为什么?

@GZUCMHjy
Copy link

Start auto replying.
[WARNING][2024-05-15 15:52:56][wechat_message.py:92] - [WX]get other_user_id failed: 'NickName'
[WARNING][2024-05-15 15:53:08][wechat_message.py:92] - [WX]get other_user_id failed: 'NickName'
[WARNING][2024-05-15 15:55:16][wechat_message.py:92] - [WX]get other_user_id failed: 'NickName'
这个是什么原因,已经可以扫码了(我是在win11的部署运行的)

@liyihang1024
Copy link

登录成功,但是发消息触发不了自动回复是什么原因呢
[INFO][2024-05-23 20:42:57][godcmd.py:194] - [Godcmd] 因未设置口令,本次的临时口令为0413。
[INFO][2024-05-23 20:42:57][godcmd.py:210] - [Godcmd] inited
[INFO][2024-05-23 20:42:57][keyword.py:40] - [keyword] {}
[INFO][2024-05-23 20:42:57][keyword.py:42] - [keyword] inited.
[INFO][2024-05-23 20:42:57][linkai.py:33] - [LinkAI] inited, config={'group_app_map': {'测试群名1': 'default', '测试群名2': 'Kv2fXJcH'}, 'midjourney': {'enabled': False, 'auto_translate': True, 'img_proxy': True, 'max_tasks': 3, 'max_tasks_per_user': 1, 'use_image_create_prefix': True}, 'summary': {'enabled': False, 'group_enabled': True, 'max_file_size': 5000, 'type': ['FILE', 'SHARING']}}
[INFO][2024-05-23 20:42:58][tool.py:28] - [tool] inited
[INFO][2024-05-23 20:42:58][role.py:69] - [Role] inited
[INFO][2024-05-23 20:42:58][dungeon.py:56] - [Dungeon] inited
[INFO][2024-05-23 20:42:58][hello.py:24] - [Hello] inited
[INFO][2024-05-23 20:42:58][finish.py:23] - [Finish] inited
[INFO][2024-05-23 20:44:19][wechat_channel.py:131] - Wechat login success, user_id: @d0003ceb233892bc35ea8a882b03fc253a6f317d66a148cfa3b3693e68c3aaaa, nickname: 人间小困仙
[WARNING][2024-05-23 20:44:42][wechat_message.py:92] - [WX]get other_user_id failed: 'NickName'
[INFO][2024-05-23 21:06:45][app.py:19] - signal 2 received, exiting...
[INFO][2024-05-23 21:06:45][config.py:215] - [Config] User datas saved.
[INFO][2024-05-23 21:06:48][app.py:19] - signal 2 received, exiting...
[INFO][2024-05-23 21:06:48][config.py:215] - [Config] User datas saved.
[INFO][2024-05-23 21:06:54][app.py:19] - signal 2 received, exiting...
[INFO][2024-05-23 21:06:54][config.py:215] - [Config] User datas saved.

@liyihang1024
Copy link

好像登录成功了,但是就是不回复,这是什么原因呢,求大佬帮忙解答
[INFO][2024-05-23 21:43:13][wechat_channel.py:131] - Wechat login success, user_id: @8bc2644b4af6630dd2ad34239ae6b1e6e41e9b3dfa03aeb3394ec44221587b75, nickname: 人间小困仙
Start auto replying.
[INFO][2024-05-23 21:43:13][wechat_channel.py:55] - Wechat message 4598873389720856835 already received, ignore
[INFO][2024-05-23 21:43:13][wechat_channel.py:55] - Wechat message 4598873389720856835 already received, ignore
[INFO][2024-05-23 21:43:36][wechat_channel.py:55] - Wechat message 1572157548920431414 already received, ignore
[INFO][2024-05-23 21:43:36][wechat_channel.py:55] - Wechat message 1572157548920431414 already received, ignore
[INFO][2024-05-23 21:43:36][bridge.py:54] - create bot chatGPT for chat
[INFO][2024-05-23 21:43:36][chat_gpt_bot.py:49] - [CHATGPT] query=明天天气怎么样呢

@liyihang1024
Copy link

PSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002D29FA65150>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))) [INFO][2023-06-21 10:57:23][wechat_channel.py:186] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR] 我连接不到你的网络), receiver=@d7ac668d10b1af61c67205189a4a105b166ea8b732e395262adf51043609572e 请问链接不上网络这个怎么解决那?

我也遇到这个问题,请问你解决了嘛

@microy2024
Copy link

2024-06-20 00:50:53 Start auto replying.
2024-06-20 00:51:08 [INFO][2024-06-19 16:51:08][bridge.py:55] - create bot dify for chat
2024-06-20 00:51:08 [INFO][2024-06-19 16:51:08][dify_bot.py:25] - [DIFY] query=你好
2024-06-20 00:51:09 [WARNING][2024-06-19 16:51:09][dify_bot.py:94] - [DIFY] response text={"code": "unauthorized", "message": "Access token is invalid", "status": 401}
2024-06-20 00:51:09 status_code=401
2024-06-20 00:51:09 [INFO][2024-06-19 16:51:09][wechat_channel.py:214] - [WX] sendMsg=Reply(type=TEXT, content=我暂时遇到了一些问题,请您稍后重试~), receiver=@4df973880000af77e7c29e04c5a6aa0b43f51fdb727881cedb63192c58feeac6扫描登录之后提示这个

@eshao2018
Copy link

eshao2018 commented Jun 19, 2024 via email

@microy2024
Copy link

2024-06-20 00:50:53 Start auto replying.
2024-06-20 00:51:08 [INFO][2024-06-19 16:51:08][bridge.py:55] - create bot dify for chat
2024-06-20 00:51:08 [INFO][2024-06-19 16:51:08][dify_bot.py:25] - [DIFY] query=你好
2024-06-20 00:51:09 [WARNING][2024-06-19 16:51:09][dify_bot.py:94] - [DIFY] response text={"code": "unauthorized", "message": "Access token is invalid", "status": 401}
2024-06-20 00:51:09 status_code=401
2024-06-20 00:51:09 [INFO][2024-06-19 16:51:09][wechat_channel.py:214] - [WX] sendMsg=Reply(type=TEXT, content=我暂时遇到了一些问题,请您稍后重试~), receiver=@4df973880000af77e7c29e04c5a6aa0b43f51fdb727881cedb63192c58feeac6扫码登录之后,发送信息成功,微信自动回复提示

@chenhaigen1991
Copy link

Traceback (most recent call last):
File "D:\wrokspase\chatgpt-on-wechat\lib\itchat\components\register.py", line 63, in configured_reply
File "D:\wrokspase\chatgpt-on-wechat\lib\itchat\components\register.py", line 63, in configured_reply
r = replyFn(msg)
File "D:\wrokspase\chatgpt-on-wechat\channel\wechat\wechat_channel.py", line 36, in handler_single_msg
WechatChannel().handle_single(cmsg)
File "D:\wrokspase\chatgpt-on-wechat\common\time_check.py", line 40, in _time_checker
f(self, *args, **kwargs) # 未开启时间模块则直接回答
File "D:\wrokspase\chatgpt-on-wechat\channel\wechat\wechat_channel.py", line 57, in wrapper
self.receivedMsgs[msgId] = True
File "D:\wrokspase\chatgpt-on-wechat\common\expired_dict.py", line 18, in setitem
expiry_time = datetime.now() + timedelta(seconds=self.expires_in_seconds)
TypeError: unsupported type for timedelta seconds component: NoneType

@eshao2018
Copy link

eshao2018 commented Jul 10, 2024 via email

@zhuonixian
Copy link

最后解决了吗

我的最新1.69 用kimi和文言一心都测试是了 只是返回了
Please press confirm on your phone.
Loading the contact, this may take a little while.
[INFO][2024-07-28 18:47:23][wechat_channel.py:131] - Wechat login suc
cess, user_id: @xxx
e9757aac4f6f776bac, nickname: xxx
Start auto replying.

完事自己触发prefix和别人触发 prefix 都没有回复。且服务端也没日志输出、 查看模型的记录 感觉都没有被调用的

@eshao2018
Copy link

eshao2018 commented Jul 28, 2024 via email

@leozongmac
Copy link

如何解决?
Please press confirm on your phone.
Loading the contact, this may take a little while.
[INFO][2024-08-14 16:30:50][wechat_channel.py:131] - Wechat login success, user_id: @71952e54d97a36e2b63d5cdd8f900a95, nickname: MCIDT·宗三川
Start auto replying.
Unexpected sync check result: window.synccheck={retcode:"1101",selector:"0"}

@eshao2018
Copy link

eshao2018 commented Aug 14, 2024 via email

@poliyar
Copy link

poliyar commented Sep 3, 2024

如何解决? Please press confirm on your phone. Loading the contact, this may take a little while. [INFO][2024-08-14 16:30:50][wechat_channel.py:131] - Wechat login success, user_id: @71952e54d97a36e2b63d5cdd8f900a95, nickname: MCIDT·宗三川 Start auto replying. Unexpected sync check result: window.synccheck={retcode:"1101",selector:"0"}

如何解决? Please press confirm on your phone. Loading the contact, this may take a little while. [INFO][2024-08-14 16:30:50][wechat_channel.py:131] - Wechat login success, user_id: @71952e54d97a36e2b63d5cdd8f900a95, nickname: MCIDT·宗三川 Start auto replying. Unexpected sync check result: window.synccheck={retcode:"1101",selector:"0"}

不能退出登录

@eshao2018
Copy link

eshao2018 commented Sep 3, 2024 via email

@FEEHarrison
Copy link

cow-webui项目推荐https://github.com/FEEHarrison/cow-webui

@Chloemini09
Copy link

Start auto replying.
Unexpected sync check result: window.synccheck={retcode:"1102",selector:"0"}
该怎么处理?

@Guanyafeid
Copy link

是会有一个ai的微信账号成为我本来账号的好友吗?

@eshao2018
Copy link

eshao2018 commented Oct 6, 2024 via email

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