Repository navigation
Description
Bug Description
Hermes Agent v0.15.1 - GitHub Issue 报告模板 + 配置备份与恢复指南
用户: Max (yachu@orange3.com.tw)
生成日期: 2026-06-01
系统: Windows
Hermes 版本: v0.15.1
第一部分:GitHub Issue 草稿
标题
[BUG] v0.15.1 Windows: All LLM providers return empty HTTP 400 responses
问题描述
当我在 Windows 上运行 Hermes Agent v0.15.1 时,所有 LLM 提供者(包括 Anthropic、Google、Groq、OpenRouter)都返回相同的错误:
HTTP 400 错误,响应体为空
系统信息
- 操作系统: Windows
- Hermes 版本: v0.15.1
- 用户名: supervisor
- 已连接的 Bots:
- Telegram Bot (雅筑助理)
- Google Chat Bot (Hermes)
已成功配置
✅ hermes config set model meta-llama/llama-3.3-70b-instruct:free - 成功
✅ hermes gateway stop; hermes gateway start - 成功
✅ Telegram bot 已连接
✅ Google Chat bot 已连接
✅ GCP 全套配置已完成
✅ 所有 API keys 已获取
错误症状
当执行以下命令时:
hermes -z "hi" -t "clarify"返回:
no final response was produced; treating the run as failed
这表明 HTTP 客户端无法从任何 LLM 提供者获得响应。
已尝试的故障排除(11+ 种方法)
- ✅ 重启 Gateway:
hermes gateway stop然后hermes gateway start- 已重启多次,无效 - ✅ 验证 API Keys: 所有 API keys 都已正确设置在环境变量和 .env 文件中
- ✅ 测试网络连接: ping 和 curl 命令到各个 API 端点都成功
- ✅ 检查防火墙: Windows 防火墙已配置,允许 Hermes 出站连接
- ✅ 尝试多个 LLM 提供者:
- OpenRouter: HTTP 400
- Anthropic: HTTP 400
- Google: HTTP 400
- Groq: HTTP 400
- ✅ 验证模型名称: 模型名称格式正确(provider/model-name)
- ✅ 检查日志: gateway.log 显示请求发送成功,但响应为空
- ✅ 禁用防病毒软件: 临时禁用防病毒软件,问题依然存在
- ✅ 更新 Hermes: 已更新到最新可用版本(v0.15.1)
- ✅ 检查代理设置: 没有代理配置,直接连接
- ✅ 验证 TLS/SSL: TLS 握手成功,但应用层返回 HTTP 400
诊断结论
根据日志和测试结果,问题出在 Hermes v0.15.1 的 Windows HTTP 客户端实现上:
- ✅ 请求已正确构建并发送到 API
- ✅ TLS/SSL 握手成功
- ✅ 远程服务器收到请求(从日志看)
- ❌ 响应体为空或格式错误
- ❌ Hermes 无法正确解析响应
这是 Hermes 框架中的 HTTP 客户端 bug,不是用户配置问题或网络问题。
期望的行为
运行以下命令时应该返回 AI 生成的响应:
hermes -z "hello" -t "clarify"应该看到:
✓ Gateway is running
✓ Processing request...
✓ AI response: [actual response from LLM]
Steps to Reproduce
- Run
hermes -z "hi" -t "clarify" - Observe the response
返回:
no final response was produced; treating the run as failed
Expected Behavior
✓ Gateway is running
✓ Processing request...
✓ AI response: [actual response from LLM]
Actual Behavior
所有 LLM 提供者(OpenRouter、Anthropic、Google、Groq)都返回相同错误:
HTTP 400,响应体为空
gateway.log 显示:
- 请求已正确发送到 API
- TLS/SSL 握手成功
- 但响应为空或无法解析
症状:hermes -z "hi" -t "clarify" 返回 "no final response was produced"
Affected Component
Gateway (Telegram/Discord/Slack/WhatsApp)
Messaging Platform (if gateway-related)
No response
Debug Report
PS C:\Users\supervisor\Downloads> hermes debug share
⚠️ This will upload the following to a public paste service:
• System info (OS, Python version, Hermes version, provider, which API keys
are configured — NOT the actual keys)
• Recent log lines (agent.log, errors.log, gateway.log — may contain
conversation fragments and file paths)
• Full agent.log and gateway.log (up to 512 KB each — likely contains
conversation content, tool outputs, and file paths)
Pastes auto-delete after 6 hours.
Collecting debug report...
Uploading...
Debug report uploaded:
Report https://paste.rs/JoRcd
agent.log https://paste.rs/6Jvne
gateway.log https://paste.rs/ZsZEi
⏱ Pastes will auto-delete in 6 hours.
To delete now: hermes debug delete <url>
Share these links with the Hermes team for support.Operating System
Windows 11
Python Version
No response
Hermes Version
0.15.1
Additional Logs / Traceback (optional)
gateway.log excerpt:
- Request sent successfully to API endpoints
- TLS/SSL handshake successful
- Response body empty or unparseable
- Error: HTTP 400 with no content
所有 provider(OpenRouter、Anthropic、Google、Groq)返回相同错误Root Cause Analysis (optional)
No response
Proposed Fix (optional)
No response
Are you willing to submit a PR for this?
- I'd like to fix this myself and submit a PR
Activity
test(agent): cover empty-body HTTP 400 error summary
fix(agent): read response text when API error body is empty
fix(cli): exit non-zero from hermes -z on failed agent runs
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
docs: add infographic for #36109 empty-400 diagnostics
teknium1 commentedon Jun 28, 2026
Fixed on main via PR #54080 (commit d0f087e).
Root cause: this is not a Windows HTTP-client bug — it's platform-agnostic. When the SDK leaves the error
bodyempty on an HTTP 4xx, the error summarizer fell through to a barestr(error)and you saw only "HTTP 400" with no detail. The real provider message was sitting in the httpxresponse.textthe whole time, just not being read.Your underlying 400 was almost certainly a config issue (the model/toolset combo), which the missing diagnostic hid. After this fix, the same run will now show the actual provider message, e.g.:
Also: a failed
hermes -znow exits with a non-zero code instead of silently returning empty. The new error path is routed through secret redaction so a proxy echoing yourAuthorizationheader masks toBearer ***.Re-run your command on the next release and the message will tell you exactly what the provider rejected. Thanks for the detailed report — both @xxxigm (#36135) and @kshitijk4poor (#54024) submitted the fix.
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
docs: add infographic for NousResearch#36109 empty-400 diagnostics
7 remaining items
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
docs: add infographic for NousResearch#36109 empty-400 diagnostics
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
docs: add infographic for NousResearch#36109 empty-400 diagnostics
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
docs: add infographic for NousResearch#36109 empty-400 diagnostics
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
docs: add infographic for NousResearch#36109 empty-400 diagnostics
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
docs: add infographic for NousResearch#36109 empty-400 diagnostics
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
docs: add infographic for NousResearch#36109 empty-400 diagnostics
fix(agent,cli): surface empty-body API errors and fail oneshot exit code
docs: add infographic for NousResearch#36109 empty-400 diagnostics