Urinx / WeixinBot

网页版微信API,包含终端版微信及微信机器人
Apache License 2.0
7.21k stars 1.98k forks source link

扫描二维码无法登陆 #295

Open jungle-D opened 2 years ago

jungle-D commented 2 years ago

python version: Python 3.10.7 os: Mac

[] 微信网页版 ... 开动 2022-09-07 11:07:11 zhanyixangdeMBP root[5727] DEBUG [] 微信网页版 ... 开动 [] 正在获取 uuid ... 成功 2022-09-07 11:07:11 zhanyixangdeMBP root[5727] DEBUG [] 正在获取 uuid ... ... 成功 [] 正在获取二维码 ... 成功 2022-09-07 11:07:11 zhanyixangdeMBP root[5727] DEBUG [] 微信网页版 ... 开动 2022-09-07 11:07:12 zhanyixangdeMBP root[5727] DEBUG Saved file: /Users/zhanyixiang/WeixinBot/wxbot_demopy3/saved/qrcodes/qrcode.jpg [*] 请使用微信扫描二维码以登录 ... 2022-09-07 11:07:24 zhanyixangdeMBP root[5727] DEBUG https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?tip=1&uuid=4fqaA6MdAg==&=1662520033 2022-09-07 11:07:32 zhanyixangdeMBP root[5727] DEBUG https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?tip=0&uuid=4fqaA6MdAg==&_=1662520044 [*] 正在登录 ... 2022-09-07 11:07:32 zhanyixangdeMBP root[5727] ERROR generic exception: Traceback (most recent call last): File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 1123, in _get data = response.read().decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 339: invalid continuation byte

失败 [] 退出程序 2022-09-07 11:07:32 zhanyixangdeMBP root[5727] DEBUG [] 正在登录 ... ... 失败 2022-09-07 11:07:32 zhanyixangdeMBP root[5727] DEBUG [*] 退出程序

zavs commented 1 year ago

Did you try to fix the problem change the codec 'utf-8' to 'unicode_escape'?

jzhou3700 commented 1 year ago

我也这样的