hanfangyuan4396 / dify-on-wechat

本项目为 chatgpt-on-wechat下游分支, 额外对接了LLMOps平台 Dify,支持Dify智能助手模式,调用工具和知识库,支持Dify工作流。
MIT License
687 stars 96 forks source link

最新版出现wxsid报错 #85

Open shangshuaiyu opened 3 weeks ago

shangshuaiyu commented 3 weeks ago

前置确认

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

操作系统类型?

Windows

运行的python版本是?

python 3.10

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

拉取到最新仓库a6a8049038ad5b726bdcb34cda0610a6be15459c 顺利安装所有依赖 python app.py 扫码 报错

问题描述 😯

Traceback (most recent call last): File "C:\aigc\dify-on-wechat\channel\wechat\wechat_channel.py", line 142, in startup itchat.auto_login( File "C:\aigc\dify-on-wechat\lib\itchat\components\register.py", line 38, in auto_login self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback, File "C:\aigc\dify-on-wechat\lib\itchat\components\login.py", line 61, in login status = self.check_login() File "C:\aigc\dify-on-wechat\lib\itchat\components\login.py", line 154, in check_login if process_login_info(self, r.text): File "C:\aigc\dify-on-wechat\lib\itchat\components\login.py", line 206, in process_login_info core.loginInfo['wxsid'] = core.loginInfo['BaseRequest']['Sid'] = cookies["wxsid"] KeyError: 'wxsid'

终端日志 📒

<此处粘贴终端日志>
hanfangyuan4396 commented 3 weeks ago

KeyError: 'wxsid' 需要实名认证