hermes - 💡(How to fix) Fix QQBot: send_message always fails with 'no access_token in response' despite gateway WebSocket being connected [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…

Root Cause

The send_message tool appears to use a separate code path from the gateway's WebSocket connection. Instead of sending through the established WebSocket, it tries to call the QQ Bot REST API directly and needs a fresh access_token.

The gateway's qqbot adapter already has a valid access_token in memory (refreshed at startup), but send_message cannot access this in-memory token. When it tries to get its own token using the app_id/client_secret, it fails with "no access_token in response".

Fix Action

Fixed

Code Example

QQBot: no access_token in response

---

[QQBot:1903879172] Ready, session_id=cf797649-b571-4e0e-8cf9-dac2849a9768

---

QQBot: no access_token in response
RAW_BUFFERClick to expand / collapse

Bug Description

When using send_message tool to send a message via QQBot, it always returns:

QQBot: no access_token in response

This happens even though the gateway WebSocket connection to QQ Bot is successfully established and receiving messages (the gateway log shows Ready, session_id=... and inbound C2C messages arrive fine).

Root Cause Analysis

The send_message tool appears to use a separate code path from the gateway's WebSocket connection. Instead of sending through the established WebSocket, it tries to call the QQ Bot REST API directly and needs a fresh access_token.

The gateway's qqbot adapter already has a valid access_token in memory (refreshed at startup), but send_message cannot access this in-memory token. When it tries to get its own token using the app_id/client_secret, it fails with "no access_token in response".

Log Evidence

Gateway log shows WebSocket OK:

[QQBot:1903879172] Ready, session_id=cf797649-b571-4e0e-8cf9-dac2849a9768

But send_message immediately returns:

QQBot: no access_token in response

Environment

  • Hermes Agent v0.12.0 (2026.4.30)
  • Platform: QQBot (single platform)
  • Config: qqbot enabled with app_id + client_secret in .env

Possible Solutions

  1. Route send_message through the gateway's existing WebSocket instead of REST API
  2. Share the in-memory access_token between the gateway adapter and the send_message tool
  3. Fix the token refresh logic in the standalone code path

Related

#21026 - Gateway multi-platform single asyncio event loop architecture issue

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