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.85k stars 8.07k forks source link

nas docker 部署 错误码1101 #1998

Closed floralhoop closed 5 months ago

floralhoop commented 5 months ago

前置确认

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

操作系统类型?

Docker

运行的python版本是?

python 3.7

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

个人微信扫码登陆后 询问问题

问题描述 😯

2024-05-20T05:50:13.724443406Z Unexpected sync check result: window.synccheck={retcode:"1101",selector:"0"} 用nas docker进行部署 登录个人微信后 给机器人发送消息

终端日志 📒

2024-05-20T05:46:57.916958134Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: single_chat_prefix=[""]
2024-05-20T05:46:57.917103868Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: hot_reload=Ture
2024-05-20T05:46:57.917196628Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: single_chat_reply_prefix="您好,"
2024-05-20T05:46:57.917294136Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: group_chat_reply_prefix="您好,"
2024-05-20T05:46:57.917416548Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: zhipu_ai_api_base=https://open.bigmodel.cn/api/paas/v4
2024-05-20T05:46:57.917539802Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: group_name_white_list=["ALL_GROUP"]
2024-05-20T05:46:57.917688705Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: zhipu_ai_api_key=394d46ec3de46d240b9f1082824ff70e.VYtnb19cb8N3fTnf
2024-05-20T05:46:57.919778688Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: character_desc="你是一个大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。"
2024-05-20T05:46:57.919813270Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: image_create_prefix="画一幅"
2024-05-20T05:46:57.919822316Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: group_chat_reply_suffix="您好,"
2024-05-20T05:46:57.919829683Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: text_to_image=cogview-3
2024-05-20T05:46:57.919836412Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: model=glm-4
2024-05-20T05:46:57.919843255Z  [INFO][2024-05-20 05:46:57][config.py:245] - [INIT] override config by environ args: single_chat_reply_suffix="您好,"
2024-05-20T05:46:57.919852403Z  [INFO][2024-05-20 05:46:57][config.py:260] - [INIT] load config: {'channel_type': 'wx', 'model': 'glm-4', 'open_ai_api_key': 'YOUR API KEY', 'claude_api_key': 'YOUR API KEY', 'text_to_image': 'cogview-3', 'voice_to_text': 'openai', 'text_to_voice': 'openai', 'proxy': '', 'hot_reload': 'Ture', 'single_chat_prefix': [''], 'single_chat_reply_prefix': '您好,', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ALL_GROUP'], 'image_create_prefix': '画一幅', 'speech_recognition': True, 'group_speech_recognition': False, 'voice_reply_voice': False, 'conversation_max_tokens': 2500, 'expires_in_seconds': 3600, 'character_desc': '你是一个大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。', 'temperature': 0.7, 'subscribe_msg': '感谢您的关注!\n这里是AI智能助手,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。', 'use_linkai': False, 'linkai_api_key': '', 'linkai_app_code': '', 'group_chat_reply_prefix': '您好,', 'zhipu_ai_api_base': 'https://open.bigmodel.cn/api/paas/v4', 'zhipu_ai_api_key': 'xxxxxxx', 'group_chat_reply_suffix': '您好,', 'single_chat_reply_suffix': '您好,'}
2024-05-20T05:46:57.919886867Z  [INFO][2024-05-20 05:46:57][config.py:210] - [Config] User datas file not found, ignore.
2024-05-20T05:46:58.320320211Z  █
[INFO][2024-05-20 05:46:58][plugin_manager.py:50] - Loading plugins config...
2024-05-20T05:46:58.320612781Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:88] - Scaning plugins ...
2024-05-20T05:46:58.326852630Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords
2024-05-20T05:46:58.332898151Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit
2024-05-20T05:46:58.335784118Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon
2024-05-20T05:46:58.337672935Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish
2024-05-20T05:46:58.343851911Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd
2024-05-20T05:46:58.346855291Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello
2024-05-20T05:46:58.349914581Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword
2024-05-20T05:46:58.365070726Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin linkai_v0.1.0 registered, path=./plugins/linkai
2024-05-20T05:46:58.368718720Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role
2024-05-20T05:46:58.373278225Z  chatgpt-tool-hub version: 0.5.0
2024-05-20T05:46:58.805565581Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:41] - Plugin tool_v0.5 registered, path=./plugins/tool
2024-05-20T05:46:58.805783388Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin GODCMD not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.805866467Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin KEYWORD not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.805950271Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin BANWORDS not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.806018195Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin LINKAI not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.806105602Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin TOOL not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.806173737Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin ROLE not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.806346368Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin DUNGEON not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.806393393Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin BDUNIT not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.806457426Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin HELLO not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.806532094Z  [INFO][2024-05-20 05:46:58][plugin_manager.py:123] - Plugin FINISH not found in pconfig, adding to pconfig...
2024-05-20T05:46:58.807384115Z  [INFO][2024-05-20 05:46:58][godcmd.py:194] - [Godcmd] 因未设置口令,本次的临时口令为8039。
2024-05-20T05:46:58.807471611Z  [INFO][2024-05-20 05:46:58][godcmd.py:210] - [Godcmd] inited
2024-05-20T05:46:58.807888814Z  [INFO][2024-05-20 05:46:58][keyword.py:40] - [keyword] {}
2024-05-20T05:46:58.807907881Z  [INFO][2024-05-20 05:46:58][keyword.py:42] - [keyword] inited.
2024-05-20T05:46:58.808280351Z  [WARNING][2024-05-20 05:46:58][banwords.py:54] - [Banwords] init failed, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/banwords .
2024-05-20T05:46:58.808370518Z  [WARNING][2024-05-20 05:46:58][plugin_manager.py:150] - Failed to init BANWORDS, diabled. [Errno 2] No such file or directory: '/app/plugins/banwords/banwords.txt'
2024-05-20T05:46:58.809368249Z  [INFO][2024-05-20 05:46:58][linkai.py:34] - [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']}}
2024-05-20T05:46:59.932533123Z  [INFO][2024-05-20 05:46:59][tool.py:28] - [tool] inited
2024-05-20T05:46:59.933716207Z  [INFO][2024-05-20 05:46:59][role.py:69] - [Role] inited
2024-05-20T05:46:59.933777402Z  [INFO][2024-05-20 05:46:59][dungeon.py:56] - [Dungeon] inited
2024-05-20T05:46:59.934024247Z  [WARNING][2024-05-20 05:46:59][bdunit.py:42] - [BDunit] init failed, ignore 
2024-05-20T05:46:59.934102539Z  [WARNING][2024-05-20 05:46:59][plugin_manager.py:150] - Failed to init BDUNIT, diabled. config.json not found
2024-05-20T05:46:59.934861654Z  [INFO][2024-05-20 05:46:59][hello.py:38] - [Hello] inited
2024-05-20T05:46:59.934929223Z  [INFO][2024-05-20 05:46:59][finish.py:23] - [Finish] inited
2024-05-20T05:47:00.140896728Z  Hot reload failed, logging in normally, error={'BaseResponse': {'ErrMsg': '文件位置错误', 'Ret': -1002, 'RawMsg': 'No such file, loading login status failed.'}}
2024-05-20T05:47:00.140985561Z  Ready to login.
2024-05-20T05:47:00.141002689Z  Getting uuid of QR code.
2024-05-20T05:47:00.307480543Z  Downloading QR code.
2024-05-20T05:47:00.487414664Z  You can also scan QRCode in any website below:
2024-05-20T05:47:00.487451368Z  https://api.pwmqr.com/qrcode/create/?url=https://login.weixin.qq.com/l/AZOJ_gPs6w==
2024-05-20T05:47:00.487459688Z  https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?text=https://login.weixin.qq.com/l/AZOJ_gPs6w==
2024-05-20T05:47:00.487475096Z  https://api.qrserver.com/v1/create-qr-code/?size=400×400&data=https://login.weixin.qq.com/l/AZOJ_gPs6w==
2024-05-20T05:47:00.487496335Z  https://api.isoyu.com/qr/?m=1&e=L&p=20&url=https://login.weixin.qq.com/l/AZOJ_gPs6w==
2024-05-20T05:47:00.512868339Z  █▀▀▀▀▀▀▀██▀▀████████▀██▀▀▀▀▀▀▀█
2024-05-20T05:47:00.513324294Z  █ █▀▀▀█ ██ █ ███ █ ██▄█ █▀▀▀█ █
2024-05-20T05:47:00.513637061Z  █ █   █ ██ █▀█▀▄ ▀▀▀▄▄█ █   █ █
2024-05-20T05:47:00.513836341Z  █ ▀▀▀▀▀ █ ▄▀█ █ ▄ ▄ ▄ █ ▀▀▀▀▀ █
2024-05-20T05:47:00.513949926Z  █▀██▀█▀▀█▀█   ▀▄▀█▄█ ▄▀█▀██████
2024-05-20T05:47:00.514038568Z  █  ▄▄█ ▀█▀█▀▀ ▄▄▄▄ ▀▀▀  ▀▀ ▀▀▄█
2024-05-20T05:47:00.514251637Z  ██▀▄▀▄▀▀▄▀▄▀ ▄ ▄▀▀▀▄▀▀▄ █▄▀▄ ▀█
2024-05-20T05:47:00.514318103Z  █▄█▀ ▄▀▀▀▀█▄█▄▀ ▄███▄  ███▀▀▀▀█
2024-05-20T05:47:00.514412000Z  ██ ▀ ▀ ▀▀█▄ ▄▀▄ ▀▄ ▄▄▀ ▄██▄█ ██
2024-05-20T05:47:00.514488324Z  █▀█ ▄▀▀▀▀▄█▄ ▀██▄ ▄██▀▀  █▄█▀ █
2024-05-20T05:47:00.514629111Z  █▀█ ▀▀█▀▄ █▄██▀▄▀▄▄ ▀▀▀▀▀ █▀▄▄█
2024-05-20T05:47:00.514733531Z  █▀▀▀▀▀▀▀█▄ ▄  ▀▄▄ ▀██ █▀█ █▄ ▄█
2024-05-20T05:47:00.517303362Z  █ █▀▀▀█ █▄▄▀ ▄▄▀▄▀▀▄█ ▀▀▀ ▄▄▄▄█
2024-05-20T05:47:00.517537873Z  █ █   █ █▄▀███ █▄█▀█▄▀█▄▄   ▄▀█
2024-05-20T05:47:00.517669689Z  █ ▀▀▀▀▀ █▀█▀▄▀▄▄▀▄ ▀▄ ▀█ █▀█ ██
2024-05-20T05:47:00.517922223Z  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
2024-05-20T05:47:00.990565709Z  <PIL.PngImagePlugin.PngImageFile image mode=1 size=450x450 at 0x7F5AD06B01C0>
2024-05-20T05:49:43.187413372Z  Please press confirm on your phone.
2024-05-20T05:49:53.225318982Z  Loading the contact, this may take a little while.
2024-05-20T05:50:01.455722988Z  [INFO][2024-05-20 05:50:01][wechat_channel.py:131] - Wechat login success, user_id: @b362e801d6e0f0923090e608673f3a8e54eb58285fd6f68fdb3e152ddec2fb21, nickname: 生活如此多娇
2024-05-20T05:50:01.455753595Z  Start auto replying.
2024-05-20T05:50:13.724443406Z  Unexpected sync check result: window.synccheck={retcode:"1101",selector:"0"}
6vision commented 5 months ago

一般是移动端掉线、退出,或者网络不稳定导致的