-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
What happened / 发生了什么
成功接入微信客服后回复消息报错如下:[16:39:15] [Core] [ERRO] [v4.14.4] [routes.platform:71]: 处理 webhook 回调时发生错误: 'open_kfid'
Traceback (most recent call last):
File "/AstrBot/astrbot/dashboard/routes/platform.py", line 63, in unified_webhook_callback
result = await platform_adapter.webhook_callback(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/platform/sources/wecom/wecom_adapter.py", line 279, in webhook_callback
return await self.server.handle_callback(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/platform/sources/wecom/wecom_adapter.py", line 122, in handle_callback
await self.callback(msg)
File "/AstrBot/astrbot/core/platform/sources/wecom/wecom_adapter.py", line 206, in callback
await self.convert_wechat_kf_message(msg_new)
File "/AstrBot/astrbot/core/platform/sources/wecom/wecom_adapter.py", line 356, in convert_wechat_kf_message
abm.self_id = msg["open_kfid"]
~~~^^^^^^^^^^^^^
KeyError: 'open_kfid'
Reproduce / 如何复现?
--
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
astrbot:v4.14.4 宝塔搭建
OS
Linux
Logs / 报错日志
Are you willing to submit a PR? / 你愿意提交 PR 吗?
- Yes!
Code of Conduct
- I have read and agree to abide by the project's Code of Conduct。