hermes - 💡(How to fix) Fix [BUG] v0.15.1 Windows: All LLM providers return empty HTTP 400 responses [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

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

Root Cause Analysis (optional)

Fix Action

Fixed

Code Example

[BUG] v0.15.1 Windows: All LLM providers return empty HTTP 400 responses

---

hermes -z "hi" -t "clarify"

---

no final response was produced; treating the run as failed

---

hermes -z "hello" -t "clarify"

---

Gateway is running
Processing request...
AI response: [actual response from LLM]

---

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.

---

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)返回相同错误
RAW_BUFFERClick to expand / collapse

Bug Description

Hermes Agent v0.15.1 - GitHub Issue 报告模板 + 配置备份与恢复指南

用户: Max ([email protected])
生成日期: 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+ 种方法)

  1. 重启 Gateway: hermes gateway stop 然后 hermes gateway start - 已重启多次,无效
  2. 验证 API Keys: 所有 API keys 都已正确设置在环境变量和 .env 文件中
  3. 测试网络连接: ping 和 curl 命令到各个 API 端点都成功
  4. 检查防火墙: Windows 防火墙已配置,允许 Hermes 出站连接
  5. 尝试多个 LLM 提供者:
    • OpenRouter: HTTP 400
    • Anthropic: HTTP 400
    • Google: HTTP 400
    • Groq: HTTP 400
  6. 验证模型名称: 模型名称格式正确(provider/model-name)
  7. 检查日志: gateway.log 显示请求发送成功,但响应为空
  8. 禁用防病毒软件: 临时禁用防病毒软件,问题依然存在
  9. 更新 Hermes: 已更新到最新可用版本(v0.15.1)
  10. 检查代理设置: 没有代理配置,直接连接
  11. 验证 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

  1. Run hermes -z "hi" -t "clarify"
  2. 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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [BUG] v0.15.1 Windows: All LLM providers return empty HTTP 400 responses [1 pull requests]