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

[Bug]: 启动时server端返回用户信息失败 #100

Open
1 task done
LQING27 opened this issue Nov 10, 2023 · 2 comments
Open
1 task done

[Bug]: 启动时server端返回用户信息失败 #100

LQING27 opened this issue Nov 10, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@LQING27
Copy link

LQING27 commented Nov 10, 2023

Search for answers in existing issues

  • I have searched issues, there is no issue related to the problem I encountered

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

@LQING27 LQING27 added the bug Something isn't working label Nov 10, 2023
@zj2949404
Copy link

先启动微信,然后注入,运行app.py,最后登录微信试试~

@ccinoo
Copy link

ccinoo commented Nov 15, 2023

1、“微信号”不能用默认的,改一个。
2、要实名认证。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants