[Bug]
What happened / 发生了什么
企业微信长连接模式,消息延迟,日志报错提示:[2026-03-09 16:50:06.354] [Core] [WARN] [v4.19.4] [wecom_ai_bot.wecomai_long_connection:212]: [WecomAI][LongConn] 等待命令响应超时: cmd=aibot_respond_msg req_id=4FcR2bSZRBevQKigbaUvNgAA 重复四次后才成功进行消息推送;
Reproduce / 如何复现?
配置长连接,未启用Webhook URL发送消息
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
版本4.19.4,win11系统 docker部署
OS
Windows
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。
Hi @w-xiaob! I'm Dosu and I’m helping the AstrBot team.
这个超时问题最常见的原因是企业可信IP白名单未配置。
排查步骤:
- 在Docker容器内或服务器上执行
curl ifconfig.me获取公网出站IP - 在企业微信管理后台将该IP添加到「企业可信IP」白名单
如果IP配置正确但问题依旧,v4.19.x 系列存在一个已知的 stream_id 生成问题,当初始响应文本为空时会导致超时。临时方案是回退到 v4.14 版本。
另外请确认 WebUI 中的配置修改后有点击💾保存按钮。
To reply, just mention @dosu.
Share context across your team and agents. Try Dosu.
@dosu 实际长连接方式无需配置白名单,且消息并非不回复,只是超时后回复;
FYI: 我这里能够在4.20.1版本上确认该问题,并且该问题看起来是仅与企业微信Bot有关的,在同一个AstrBot实例上连接的钉钉一切表现都是正常的。
FYI:4.24.5版本上仍然有该问题
您好,感谢您对 AstrBot 项目的关注。
经过审查,该 Issue 不符合我们的提交规范,将被关闭。
该 Issue 存在以下问题之一或多项:
- 正文内容过于简略或空泛,缺乏足够的技术细节供维护者评估
- 内容为提问、求助或讨论,而非明确的 Bug 报告或功能建议
- 标题仅有
[Bug]/[Feature]标签,缺少实际的标题描述 - 正文仅包含外部链接,无内联内容
- 属于插件发布通知、安全报告等非标准 Issue 类型
请您按照 Issue 模板 重新提交一份规范的报告:
- Bug 请使用「🐛 报告 Bug」模板,填写完整的问题描述、复现步骤、版本信息、环境信息和错误日志
- 功能建议请使用「🎉 功能建议」模板,填写功能描述、使用场景和检查清单
- 安全漏洞请通过项目的安全报告渠道提交,而非公开 Issue
我们会及时处理您重新提交的规范报告。
Hello, thank you for your interest in the AstrBot project.
After review, this Issue does not comply with our submission guidelines and will be closed.
This Issue has one or more of the following problems:
- The body is too brief or vague, lacking sufficient technical details for maintainers to evaluate
- The content is a question, help request, or discussion rather than a clear Bug report or feature suggestion
- The title contains only a
[Bug]/[Feature]label with no actual description - The body contains only external links with no inline content
- The Issue type is non-standard (plugin announcement, security report, etc.)
Please resubmit a properly formatted report following the Issue template:
- For bugs, use the "Bug Report" template with complete problem description, reproduction steps, version info, environment details, and error logs
- For feature suggestions, use the "Feature Request" template with feature description, use case, and checklist
- For security vulnerabilities, please use the project's security reporting channel instead of public Issues
We will address your resubmitted report promptly.
您好,您的 Issue 正文内容已按模板填写,但标题仅有 [Bug]/[Feature] 标签,缺少实际的问题/功能描述。
请编辑 Issue 标题,补充简明的问题描述,例如:
[Bug] 知识库文件删除后 AI 仍可调用已删除的数据[Feature] 支持本地 embedding 和 rerank 模型接入 Ollama
格式规范的标题有助于维护者快速定位和分类,感谢配合!
Hello, your Issue body follows the template, but the title only contains a [Bug]/[Feature] label with no actual description.
Please edit the Issue title to add a concise problem/feature description. A well-formatted title helps maintainers triage and categorize efficiently. Thank you!