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

微信扫码登录错误 #1989

Closed
2 tasks done
NHPT opened this issue May 16, 2024 · 6 comments
Closed
2 tasks done

微信扫码登录错误 #1989

NHPT opened this issue May 16, 2024 · 6 comments

Comments

@NHPT
Copy link

NHPT commented May 16, 2024

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

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

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

python 3.9

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

扫码后报错
[ERROR][2024-05-16 11:31:13][wechat_channel.py:135] - 'wxsid'
Traceback (most recent call last):
File "/root/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 121, in startup
itchat.auto_login(
File "/root/chatgpt-on-wechat/lib/itchat/components/register.py", line 38, in auto_login
self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
File "/root/chatgpt-on-wechat/lib/itchat/components/login.py", line 61, in login
status = self.check_login()
File "/root/chatgpt-on-wechat/lib/itchat/components/login.py", line 154, in check_login
if process_login_info(self, r.text):
File "/root/chatgpt-on-wechat/lib/itchat/components/login.py", line 206, in process_login_info
core.loginInfo['wxsid'] = core.loginInfo['BaseRequest']['Sid'] = cookies["wxsid"]
KeyError: 'wxsid'

1715830516111

问题描述 😯

No response

终端日志 📒

INFO][2024-05-16 11:30:55][role.py:69] - [Role] inited
[INFO][2024-05-16 11:30:55][dungeon.py:56] - [Dungeon] inited
[INFO][2024-05-16 11:30:55][hello.py:38] - [Hello] inited
[INFO][2024-05-16 11:30:55][finish.py:23] - [Finish] inited
[ERROR][2024-05-16 11:31:13][wechat_channel.py:135] - 'wxsid'
Traceback (most recent call last):
  File "/root/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 121, in startup
    itchat.auto_login(
  File "/root/chatgpt-on-wechat/lib/itchat/components/register.py", line 38, in auto_login
    self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
  File "/root/chatgpt-on-wechat/lib/itchat/components/login.py", line 61, in login
    status = self.check_login()
  File "/root/chatgpt-on-wechat/lib/itchat/components/login.py", line 154, in check_login
    if process_login_info(self, r.text):
  File "/root/chatgpt-on-wechat/lib/itchat/components/login.py", line 206, in process_login_info
    core.loginInfo['wxsid'] = core.loginInfo['BaseRequest']['Sid'] = cookies["wxsid"]
KeyError: 'wxsid'
[INFO][2024-05-16 11:35:54][app.py:19] - signal 2 received, exiting...
[INFO][2024-05-16 11:35:54][config.py:219] - [Config] User datas saved.
@BiCffQ
Copy link

BiCffQ commented May 17, 2024

同样的报错
企业微信截图_20240517101926

@WqiancangQ
Copy link

同样的错误+1
image

@BiCffQ
Copy link

BiCffQ commented May 17, 2024

这种问题好像是就是被Tencent封号了,禁止web登录的缘故。

@BiCffQ
Copy link

BiCffQ commented May 17, 2024

这种问题好像是就是被Tencent封号了,禁止web登录的缘故。

可以先访问https://web.weixin.qq.com/,看能否正常登录,微信号需要实名验证开通支付功能
1231

@sbcxk
Copy link

sbcxk commented May 18, 2024

微信账号实名了吗?

@6vision
Copy link
Collaborator

6vision commented May 19, 2024

需要实名绑卡认证,腾讯官方的要求

@6vision 6vision closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants