Open LQING27 opened 9 months ago
python 3.10
不确定是个人操作导致还是bugger,完全按照文档操作,依赖也确认过了版本和requirements的一致,但是在项目启动起来会报这样的错误。 报该错之后往该微信发送信息能监听到收到信息,但是会报NoneType,错误日志:
[INFO][2023-11-10 17:32:02][manager.py:42] - Checking plugins... [INFO][2023-11-10 17:32:02][manager.py:54] - All plugins are installed [INFO][2023-11-10 17:32:02][api.py:33] - ------>>> get personal info [INFO][2023-11-10 17:32:02][api.py:34] - {'content': '{"content":"[json.exception.type_error.316] invalid UTF-8 byte at index 2: 0xF3","id":"20231110173202","receiver":"CLIENT","sender":"SERVER","srvid":1,"status":"FAILED","time":"2023-11-10 17:32:02","type":6500}', 'id': '20231110173202', 'receiver': 'CLIENT', 'sender': 'SERVER', 'srvid': 1, 'status': 'SUCCSESSED', 'time': '2023-11-10 17:32:02', 'type': 6500} [INFO][2023-11-10 17:32:02][api.py:36] - {'content': '[json.exception.type_error.316] invalid UTF-8 byte at index 2: 0xF3', 'id': '20231110173202', 'receiver': 'CLIENT', 'sender': 'SERVER', 'srvid': 1, 'status': 'FAILED', 'time': '2023-11-10 17:32:02', 'type': 6500} [ERROR][2023-11-10 17:32:02][api.py:49] - Get personal info failed! [ERROR][2023-11-10 17:32:02][api.py:50] - 'wx_name' Traceback (most recent call last): File "D:\workspace\github\wechat-gptbot\utils\api.py", line 41, in get_personal_info nickName: {content['wx_name']} KeyError: 'wx_name' [INFO][2023-11-10 17:32:02][wechat.py:40] - App startup successfully! [INFO][2023-11-10 17:32:02][wechat.py:212] - [Websocket] connected [ERROR][2023-11-10 17:33:05][wechat.py:218] - [Websocket] Error: 'NoneType' object is not subscriptable
No response
先启动微信,然后注入,运行app.py,最后登录微信试试~
1、“微信号”不能用默认的,改一个。 2、要实名认证。
Search for answers in existing issues
Python version
python 3.10
Issue description
不确定是个人操作导致还是bugger,完全按照文档操作,依赖也确认过了版本和requirements的一致,但是在项目启动起来会报这样的错误。 报该错之后往该微信发送信息能监听到收到信息,但是会报NoneType,错误日志:
[INFO][2023-11-10 17:32:02][manager.py:42] - Checking plugins... [INFO][2023-11-10 17:32:02][manager.py:54] - All plugins are installed [INFO][2023-11-10 17:32:02][api.py:33] - ------>>> get personal info [INFO][2023-11-10 17:32:02][api.py:34] - {'content': '{"content":"[json.exception.type_error.316] invalid UTF-8 byte at index 2: 0xF3","id":"20231110173202","receiver":"CLIENT","sender":"SERVER","srvid":1,"status":"FAILED","time":"2023-11-10 17:32:02","type":6500}', 'id': '20231110173202', 'receiver': 'CLIENT', 'sender': 'SERVER', 'srvid': 1, 'status': 'SUCCSESSED', 'time': '2023-11-10 17:32:02', 'type': 6500} [INFO][2023-11-10 17:32:02][api.py:36] - {'content': '[json.exception.type_error.316] invalid UTF-8 byte at index 2: 0xF3', 'id': '20231110173202', 'receiver': 'CLIENT', 'sender': 'SERVER', 'srvid': 1, 'status': 'FAILED', 'time': '2023-11-10 17:32:02', 'type': 6500} [ERROR][2023-11-10 17:32:02][api.py:49] - Get personal info failed! [ERROR][2023-11-10 17:32:02][api.py:50] - 'wx_name' Traceback (most recent call last): File "D:\workspace\github\wechat-gptbot\utils\api.py", line 41, in get_personal_info nickName: {content['wx_name']} KeyError: 'wx_name' [INFO][2023-11-10 17:32:02][wechat.py:40] - App startup successfully! [INFO][2023-11-10 17:32:02][wechat.py:212] - [Websocket] connected [ERROR][2023-11-10 17:33:05][wechat.py:218] - [Websocket] Error: 'NoneType' object is not subscriptable
Repro steps
No response
Relevant log output
No response