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
31.62k stars 8.22k forks source link

二维码登不上去,报错。 #1106

Open X-233 opened 1 year ago

X-233 commented 1 year ago

前置确认

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

操作系统类型?

Linux

运行的python版本是?

python 3.8

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

KeyError: 'wxsid'

问题描述 😯

报错

终端日志 📒

[ERROR][2023-05-16 20:42:40][app.py:52] - App startup failed!
[ERROR][2023-05-16 20:42:40][app.py:53] - 'wxsid'
Traceback (most recent call last):
  File "/home/AI/ChatGPT_2/chatgpt-on-wechat/app.py", line 50, in run
    channel.startup()
  File "/home/AI/ChatGPT_2/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 116, in startup
    itchat.auto_login(
  File "/home/AI/ChatGPT_2/chatgpt-on-wechat/lib/itchat/components/register.py", line 38, in auto_login
    self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
  File "/home/AI/ChatGPT_2/chatgpt-on-wechat/lib/itchat/components/login.py", line 61, in login
    status = self.check_login()
  File "/home/AI/ChatGPT_2/chatgpt-on-wechat/lib/itchat/components/login.py", line 154, in check_login
    if process_login_info(self, r.text):
  File "/home/AI/ChatGPT_2/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'
Fate0x01 commented 1 year ago

itchat 新账号是登不了的

lanvent commented 1 year ago

是否绑定银行卡实名认证

Songsci1024 commented 1 year ago

绑定了银行卡并实名就可以了

Fate0x01 commented 1 year ago

绑定了银行卡并实名就可以了

我看了一些资料,这些资料说明了新账号即使绑定银行卡并实名,也无法使用itchat的。

Songsci1024 commented 1 year ago

绑定了银行卡并实名就可以了

我看了一些资料,这些资料说明了新账号即使绑定银行卡并实名,也无法使用itchat的。

这是我自己的情况,我的小号是去年10月份左右创建的,前几天扫描二维码后不行,然后就绑定了银行卡并实名之后马上就可以了😂

dongweiq commented 1 year ago

已经实名认证了,上午还能用,晚上就不能用了,很奇怪,相同的报错。 Please press confirm on your phone. [ERROR][2023-05-29 22:48:36][app.py:52] - App startup failed! [ERROR][2023-05-29 22:48:36][app.py:53] - 'wxsid' Traceback (most recent call last): File "/Users/honghe/PycharmProjects/chatgpt-on-wechat/app.py", line 50, in run channel.startup() File "/Users/honghe/PycharmProjects/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 115, in startup itchat.auto_login( File "/Users/honghe/PycharmProjects/chatgpt-on-wechat/lib/itchat/components/register.py", line 38, in auto_login self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback, File "/Users/honghe/PycharmProjects/chatgpt-on-wechat/lib/itchat/components/login.py", line 61, in login status = self.check_login() File "/Users/honghe/PycharmProjects/chatgpt-on-wechat/lib/itchat/components/login.py", line 154, in check_login if process_login_info(self, r.text): File "/Users/honghe/PycharmProjects/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'

JohnLizt commented 1 year ago

同样的问题,已实名,挂了一天自动登出后就上不去了,有人有头绪吗