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

[Bug]尝试解析 GeweChat 下发的消息时遇到问题: 'TypeName' #682

Closed
1 of 2 tasks
shom opened this issue Mar 3, 2025 · 4 comments
Closed
1 of 2 tasks

[Bug]尝试解析 GeweChat 下发的消息时遇到问题: 'TypeName' #682

shom opened this issue Mar 3, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@shom
Copy link

shom commented Mar 3, 2025

发生了什么

gewechat版本
gewe latest 147ec0c81c91 5 hours ago 2.23GB
registry.cn-hangzhou.aliyuncs.com/gewe/gewe latest 147ec0c81c91 5 hours ago 2.23GB

有没有大佬知道这是bug还是我配置时忽略了什么?

如何复现?

AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

v3.4.33 docker

操作系统

Linux

报错日志

[WARNING] [client.py:196]: 尝试解析 GeweChat 下发的消息时遇到问题: 'TypeName'。下发消息内容: {'appid': 'wx_ctT97VgjqPUfHqNxvLZSH', 'type_name': 'AddMsg', 'data': {'MsgId': 2045715346, 'FromUserName': {'string': 'wxid_lnuijq1id82p12'}, 'ToUserName': {'string': 'wxid_lnuijq1id82p12'}, 'MsgType': 51, 'Content': {'string': '\n<op id='11'>\nHandOffMaster\n\n \n \n\n'}, 'Status': 3, 'ImgStatus': 1, 'ImgBuf': {'iLen': 0}, 'CreateTime': 1741006100, 'MsgSource': '\n\tv1_NHmrnRLR\n\t<tmp_node>\n\t\t\n\t</tmp_node>\n\n', 'NewMsgId': 2966977774908156665, 'MsgSeq': 789063259}, 'Wxid': 'wxid_lnuijq1id82p12'}。

你愿意提交 PR 吗?

  • 是的,我愿意提交 PR!

Code of Conduct

@shom shom added the bug Something isn't working label Mar 3, 2025
@Soulter
Copy link
Owner

Soulter commented Mar 3, 2025

commit 613c4015e96166abc46854d35f08b7d61fb0a033 已修复,将会随下个版本发布或切换到开发版最新commit。

@zjmdong
Copy link

zjmdong commented Mar 3, 2025

切换到开发版最新commit,此问题报错改变为:
[14:21:50] [WARNING] [client.py:219]: 尝试解析 GeweChat 下发的消息时遇到问题: 'Data'。下发消息内容: {'appid': 'wx_-iymerCS8BGW4jH_305rF', 'type_name': 'AddMsg', 'data': {'MsgId': 1435148080, 'FromUserName': {'string': 'wxid_38b6s9tefmu612'}, 'ToUserName': {'string': 'wxid_3cpmie0wvo0d22'}, 'MsgType': 1, 'Content': {'string': '1'}, 'Status': 3, 'ImgStatus': 1, 'ImgBuf': {'iLen': 0}, 'CreateTime': 1741011710, 'MsgSource': '\n\t1\n\t1\n\tV1_Wuv9wt3h|v1_Wuv9wt3h\n\t<tmp_node>\n\t\t\n\t</tmp_node>\n\n', 'PushContent': 'DNDH : 1', 'NewMsgId': 2549374153688494220, 'MsgSeq': 830143022}, 'Wxid': 'wxid_3cpmie0wvo0d22'}。

Soulter added a commit that referenced this issue Mar 3, 2025
@Soulter
Copy link
Owner

Soulter commented Mar 3, 2025

已经尝试修复 01d80ab549814db554130bdb93b363b397dcb5c6 并且已经经过测试

@Soulter Soulter marked this as a duplicate of #680 Mar 3, 2025
diudiu62 added a commit to diudiu62/AstrBot that referenced this issue Mar 4, 2025
* master:
  fix: bugfixes
  fix: circular import
  perf: 添加多个平台适配器并更新 get_client 方法的返回类型
  v3.4.34
  feat: 代码执行器添加清理和列出用户上传文件的命令
  perf: 优化插件市场、更新项目的视觉反馈
  fix: parse error in gewechat Soulter#682 Soulter#680
  ‼️fix: 修复 wecom 加载失败的问题 Soulter#659
  fix: gewechat 'TypeName' parse error Soulter#680 Soulter#682
  ‼️fix(telegram): mentioning anyone triggers bot Soulter#669
  chore: cleanup
  style: cleanup
  style: cleanup
  style: format codes
  将Flask初始化时允许的最大文件体积设置为128MB
  chore: update port mappings in compose.yml
  perf: 添加插件安装反馈提示,优化平台和提供者卡片高度
  ✨ feat: 分离本地插件和插件市场,缓存插件市场数据,插件市场搜索同时支持对描述进行搜索
@Soulter
Copy link
Owner

Soulter commented Mar 4, 2025

已经修复。

@Soulter Soulter closed this as completed Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants