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 byWARNING gateway.run: Reconnect qqbot errorandnext 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. Afterhermes gateway restart, the log shows✓ qqbot connectedand does not repeatunexpected 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