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

【gewechat】个人微信 扫码登陆后报错,无响应 #220

Open
2 tasks done
qiyoushuai opened this issue Jan 24, 2025 · 0 comments
Open
2 tasks done

【gewechat】个人微信 扫码登陆后报错,无响应 #220

qiyoushuai opened this issue Jan 24, 2025 · 0 comments

Comments

@qiyoushuai
Copy link

前置确认

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

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

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

操作系统类型?

Linux

运行的python版本是?

python 3.10

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

运行应用后 使用手机扫码登录微信,弹出报错

问题描述 😯

关键字:KeyError: 'Data'
File "/root/weGPT/dify-on-wechat/channel/gewechat/gewechat_message.py", line 141, in init
raise NotImplementedError("Unsupported message type: Type:{}".format(msg_type))
NotImplementedError: Unsupported message type: Type:51

终端日志 📒

Traceback (most recent call last):
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 280, in process
return self.handle()
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 271, in handle
return self._delegate(fn, self.fvars, args)
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 517, in _delegate
return handle_class(cls)
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 495, in handle_class
return tocall(*args)
File "/root/weGPT/dify-on-wechat/channel/gewechat/gewechat_channel.py", line 151, in POST
gewechat_msg = GeWeChatMessage(data, channel.client)
File "/root/weGPT/dify-on-wechat/channel/gewechat/gewechat_message.py", line 141, in init
raise NotImplementedError("Unsupported message type: Type:{}".format(msg_type))
NotImplementedError: Unsupported message type: Type:51

129.211.81.74:60378 - - [24/Jan/2025 16:10:34] "HTTP/1.1 POST /v2/api/callback/collect" - 500 Internal Server Error
Traceback (most recent call last):
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 280, in process
return self.handle()
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 271, in handle
return self._delegate(fn, self.fvars, args)
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 517, in _delegate
return handle_class(cls)
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 495, in handle_class
return tocall(*args)
File "/root/weGPT/dify-on-wechat/channel/gewechat/gewechat_channel.py", line 151, in POST
gewechat_msg = GeWeChatMessage(data, channel.client)
File "/root/weGPT/dify-on-wechat/channel/gewechat/gewechat_message.py", line 80, in init
self.msg_id = msg['Data']['NewMsgId']
KeyError: 'Data'

129.211.81.74:60378 - - [24/Jan/2025 16:10:35] "HTTP/1.1 POST /v2/api/callback/collect" - 500 Internal Server Error
[INFO][2025-01-24 16:10:35][gewechat_channel.py:90] - [gewechat] callback set successfully
Traceback (most recent call last):
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 280, in process
return self.handle()
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 271, in handle
return self._delegate(fn, self.fvars, args)
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 517, in _delegate
return handle_class(cls)
File "/root/anaconda3/envs/weGPT/lib/python3.10/site-packages/web/application.py", line 495, in handle_class
return tocall(*args)
File "/root/weGPT/dify-on-wechat/channel/gewechat/gewechat_channel.py", line 151, in POST
gewechat_msg = GeWeChatMessage(data, channel.client)
File "/root/weGPT/dify-on-wechat/channel/gewechat/gewechat_message.py", line 80, in init
self.msg_id = msg['Data']['NewMsgId']
KeyError: 'Data'

129.211.81.74:60378 - - [24/Jan/2025 16:10:45] "HTTP/1.1 POST /v2/api/callback/collect" - 500 Internal Server Error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant