[Bug]QQ Official Webhook适配器对同一条消息有概率会多次触发
What happened / 发生了什么
用户@官Bot发送一条消息,有可能会被Astrbot作为两条或三条相同消息处理,导致统同一个指令被多次触发
Reproduce / 如何复现?
随机出现,这是腾讯QQ Official Webhook的已知行为,当腾讯服务器判断webhook通知没有正常被接收时,会重试发送通知最大三次,因此可能导致这种问题。
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
v4.19.2 本地代码部署 QQ Official Webhook适配器
OS
macOS
Logs / 报错日志
无错误日志
Are you willing to submit a PR? / 你愿意提交 PR 吗?
- [x] Yes!
Code of Conduct
- [x] I have read and agree to abide by the project's Code of Conduct。
[2026-03-06 18:42:30.201] [Core] [INFO] [core.event_bus:66]: [default] [***(qq_official)] C7533B*3129: [At:qq_official] test test
[2026-03-06 18:42:30.385] [Core] [INFO] [core.event_bus:66]: [default] [***(qq_official)] C7533B*3129: [At:qq_official] test test
[2026-03-06 18:42:30.400] [Core] [INFO] [process_stage.follow_up:187]: Captured follow-up message for active agent run, umo=***:FriendMessage:C7533B*3129, order_seq=0
[2026-03-06 18:42:30.407] [Core] [INFO] [core.event_bus:66]: [default] [***(qq_official)] C7533B*3129: [At:qq_official] test test
[2026-03-06 18:42:30.423] [Core] [INFO] [process_stage.follow_up:187]: Captured follow-up message for active agent run, umo=***:FriendMessage:C7533B*3129, order_seq=1
我用的WebSocket,我们是否遇到了一样的问题?
[2026-03-06 18:42:30.201] [Core] [INFO] [core.event_bus:66]: [default] [(qq_official)] C7533B3129: [At:qq_official] test test [2026-03-06 18:42:30.385] [Core] [INFO] [core.event_bus:66]: [default] [(qq_official)] C7533B3129: [At:qq_official] test test [2026-03-06 18:42:30.400] [Core] [INFO] [process_stage.follow_up:187]: Captured follow-up message for active agent run, umo=:FriendMessage:C7533B3129, order_seq=0 [2026-03-06 18:42:30.407] [Core] [INFO] [core.event_bus:66]: [default] [(qq_official)] C7533B3129: [At:qq_official] test test [2026-03-06 18:42:30.423] [Core] [INFO] [process_stage.follow_up:187]: Captured follow-up message for active agent run, umo=**:FriendMessage:C7533B3129, order_seq=1 我用的WebSocket,我们是否遇到了一样的问题?
另外,我关闭然后再启动了一下适配器,现在一条消息会发4次了。有人能复现这个bug吗?
再重新启动了一下适配器现在发5次了。
另外,我关闭然后再启动了一下适配器,现在一条消息会发4次了。有人能复现这个bug吗?
再重新启动了一下适配器现在发5次了。
是固定触发吗,触发之后,之后的每一条指令都必定被重复触发?
另外,我关闭然后再启动了一下适配器,现在一条消息会发4次了。有人能复现这个bug吗? 再重新启动了一下适配器现在发5次了。
是固定触发吗,触发之后,之后的每一条指令都必定被重复触发?
是的
是的
那我们应该不是一个问题,我的问题基本可以确定是腾讯服务器多次调用回调接口引起的。你的看起来是Astrbot自身的事件接收器出了问题。
是的
那我们应该不是一个问题,我的问题基本可以确定是腾讯服务器多次调用回调接口引起的。你的看起来是Astrbot自身的事件接收器出了问题。
明白了,我遇到的应该是#5387