zhayujie / chatgpt-on-wechat

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

某个微信号的bot突然不回复个人消息,其他微信号可以 #1769

Closed caizhuoyue77 closed 2 months ago

caizhuoyue77 commented 6 months ago

前置确认

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

操作系统类型?

Linux

运行的python版本是?

python 3.9

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

在某个微信号上弄了一个bot,之前都可以正常回复,但是突然不能回复了,重新扫码登陆也不可以。换了一个微信号就可以,请问大家了解这方面的问题吗?

问题描述 😯

截屏2024-02-24 09 55 25

扫码后一直停留在这个页面,无论怎么发消息都收不到也就不会回复。

终端日志 📒

INFO][2024-02-24 10:35:26][config.py:219] - [Config] User datas loaded.
[WARNING][2024-02-24 10:35:26][audio_convert.py:9] - import pysilk failed, wechaty voice message will not be supported.
[INFO][2024-02-24 10:35:26][plugin_manager.py:50] - Loading plugins config...
[INFO][2024-02-24 10:35:26][plugin_manager.py:88] - Scaning plugins ...
[INFO][2024-02-24 10:35:26][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit
[INFO][2024-02-24 10:35:26][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish
[INFO][2024-02-24 10:35:26][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role
[WARNING][2024-02-24 10:35:26][plugin_manager.py:113] - Failed to import plugin tool: No module named 'chatgpt_tool_hub'
[INFO][2024-02-24 10:35:26][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello
[INFO][2024-02-24 10:35:26][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords
[INFO][2024-02-24 10:35:26][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword
[INFO][2024-02-24 10:35:26][plugin_manager.py:41] - Plugin linkai_v0.1.0 registered, path=./plugins/linkai
[INFO][2024-02-24 10:35:26][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd
[INFO][2024-02-24 10:35:26][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon
[INFO][2024-02-24 10:35:26][godcmd.py:203] - [Godcmd] 因未设置口令,本次的临时口令为5306。
[INFO][2024-02-24 10:35:26][godcmd.py:219] - [Godcmd] inited
[INFO][2024-02-24 10:35:26][keyword.py:40] - [keyword] {}
[INFO][2024-02-24 10:35:26][keyword.py:42] - [keyword] inited.
[INFO][2024-02-24 10:35:26][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-02-24 10:35:26][role.py:69] - [Role] inited
[INFO][2024-02-24 10:35:26][dungeon.py:56] - [Dungeon] inited
[INFO][2024-02-24 10:35:26][hello.py:24] - [Hello] inited
[INFO][2024-02-24 10:35:26][finish.py:23] - [Finish] inited
Ready to login.
Getting uuid of QR code.
Downloading QR code.
You can also scan QRCode in any website below:
https://api.pwmqr.com/qrcode/create/?url=https://login.weixin.qq.com/l/geMrjFfqBA==
https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?text=https://login.weixin.qq.com/l/geMrjFfqBA==
https://api.qrserver.com/v1/create-qr-code/?size=400×400&data=https://login.weixin.qq.com/l/geMrjFfqBA==
https://api.isoyu.com/qr/?m=1&e=L&p=20&url=https://login.weixin.qq.com/l/geMrjFfqBA==
█▀▀▀▀▀▀▀██▀█▀██▀▀███▀██▀▀▀▀▀▀▀█
█ █▀▀▀█ █▄▄▀▄██  █▄█▄ █ █▀▀▀█ █
█ █   █ █▀▀ ▀ █▄▄█▀▀ ▄█ █   █ █
█ ▀▀▀▀▀ █▀▄ ▄ ▄▀▄▀█ ▄▀█ ▀▀▀▀▀ █
█▀█▀█▀█▀█████ ▄▄▀▀ █▀ ███▀██▀██
█ ▀▄▀██▀▄ ██▀█ ▀█  ▀█▀ ▄▀▀▄▀▀ █
█ ▀██ ▀▀ ▄ █▀ ▄███ ▄▀ ▄ ▄▄▀█ ▀█
██ █▀▄▄▀▄▄▀▀█▀▄▀█▄▀██▄ ▄▀█ █▀ █
█▀  ▀█▄▀█▄▀▄█▄     ▄ ▀  ██ █ ▀█
█▀█ █ ▄▀▀▀█▀▄▀█▄▄▄███ ▀ ▀█▄▄▀ █
█▀▄▀▀▄█▀▀▄▀▀▀█  ▄    ▀▀ ▀ ▄█▄██
█▀▀▀▀▀▀▀█▄▄▀ ▀█▄█▄▀█▀ █▀█ ▀▄  █
█ █▀▀▀█ █▀▀▄▄▄▄ █  ▄█ ▀▀▀ ▄█▄▄█
█ █   █ █▀ ▀ ▀▄██▄██████  ▀▄▄ █
█ ▀▀▀▀▀ █▀▄▄▀ ▀▄▀  ▀  ▀▀ ███ ▀█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Error: no "view" rule for type "image/png" passed its test case
       (for more information, add "--debug=1" on the command line)
Please press confirm on your phone.
Loading the contact, this may take a little while.
[INFO][2024-02-24 10:35:52][wechat_channel.py:130] - Wechat login success, user_id: @dccb132ffcb7d5f7dd967851c6c46b931bd61c4a450a27b5fce3788f2ff68f1e, nickname: star
Start auto replying.
ma-pony commented 6 months ago

我也遇到了同样的问题

ma-pony commented 6 months ago

https://github.com/zhayujie/chatgpt-on-wechat/blob/74ebbdd7617b08bfc4afb4c095b0c38356387536/lib/itchat/components/login.py#L234

我改成这行代码发现正常了

        'r': int(-time.time() / random.randint(1300,1800)),
caizhuoyue77 commented 6 months ago

https://github.com/zhayujie/chatgpt-on-wechat/blob/74ebbdd7617b08bfc4afb4c095b0c38356387536/lib/itchat/components/login.py#L234

我改成这行代码发现正常了

        'r': int(-time.time() / random.randint(1300,1800)),

我去试试!谢谢你!!

Carry6666 commented 5 months ago

请问一下这个问题解决了么,我现在也遇到了这个问题

caizhuoyue77 commented 5 months ago

请问一下这个问题解决了么,我现在也遇到了这个问题

没有呢,而且有的时候就突然掉线,得重新登陆。

6vision commented 5 months ago

是不是设置的hot reload为true,然后更改微信账户的昵称?可以把根目录的itchat.pkl文件删掉再试试

haohaode11 commented 5 months ago

你好 我今天起的项目遇到的问题也是这个 请问怎么解决

azz212 commented 2 months ago

tx不让用itchat了呗,使用ipadwx协议

6vision commented 2 months ago

开源项目协议不稳定的原因,暂时没有好的解决办法,移动端微信尽量保持联网在线,不被自动系统结束后台