Agent FixboardAgentFixboard

QQ Bot gateway stuck retrying: 'unexpected keyword argument is_reconnect'

After an update, the gateway log repeats QQAdapter.connect() got an unexpected keyword argument 'is_reconnect' and then next retry in 60s. A triage comment names this a TypeError. QQ Bot stays offline.

From GitHub

NousResearch/hermes-agent

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
v2026.7.20
Last checked

Verified fix: PR #61767 merged on . Fixed in v2026.7.20 (first published release whose tag contains the merge commit). Last checked .

Symptom

After an update, the gateway log repeats QQAdapter.connect() got an unexpected keyword argument 'is_reconnect' and then next retry in 60s. A triage comment names this a TypeError. QQ Bot stays offline.

Evidence what you'll see

  • The reported line is ERROR gateway.run: ✗ qqbot error: QQAdapter.connect() got an unexpected keyword argument 'is_reconnect', followed by WARNING gateway.run: Reconnect qqbot error and next retry in 60s.
  • A comment on 2 Jul 2026 shows the same pair of lines on Hermes v0.18.0 (2026.7.1) at commit 88d1d620.

Why it happens

Commit 43b8ba4181 added is_reconnect to BasePlatformAdapter.connect, and the reconnect watcher passes is_reconnect=True. QQAdapter.connect was still async def connect(self) -> bool: and rejected the keyword. Pull request 61767 accepts the keyword on QQ Bot and on WeCom Callback. The pull request says QQ has no server-side update queue, so the flag is accepted and ignored.

Affected versions

The report is after commit 43b8ba4181, on Windows 10, Python 3.11.9, qq-botpy 1.2.1. Reproduce with hermes gateway restart. A comment reproduced it on Hermes v0.18.0 (2026.7.1) with QQ_APP_ID and QQ_CLIENT_SECRET in ~/.hermes/.env.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • The pull request says QQAdapter.connect(is_reconnect=True) is accepted. After hermes gateway restart, the log shows ✓ qqbot connected and does not repeat unexpected keyword argument 'is_reconnect'.

If it still fails

  • The pull request also covers WeCom Callback, from #59430. The same unexpected-keyword line on WeCom is this contract, not a separate QQ-only failure.
  • The linked issue does not describe a remaining failure after pull request 61767. The closing comment says a repository-wide check prevents the same adapter-signature regression.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it