Bug Description
QQ Bot adapter fails to connect because connect() method signature doesn’t match the base class. The base class BasePlatformAdapter.connect() expects an is_reconnect keyword argument, but QQAdapter.connect() doesn’t accept it.
Steps to Reproduce
- Configure QQ Bot in config.yaml (AppID / AppSecret)
- Start gateway: hermes gateway run
- See error: QQAdapter.connect() got an unexpected keyword argument 'is_reconnect'
- QQ Bot stays offline
Expected Behavior
QQ Bot should connect successfully and respond to messages.
Actual Behavior
Gateway fails to connect QQ Bot and keeps retrying with the same error.
Affected Component
Other
Messaging Platform (if gateway-related)
No response
Debug Report
Report: https://paste.rs/MiCTW
agent.log: https://paste.rs/VEANw
gateway.log: https://paste.rs/R9mUD
Operating System
ubuntu 26.04
Python Version
3.12.0
Hermes Version
0.18.0
Additional Logs / Traceback (optional)
ERROR gateway.run: ✗ qqbot error: QQAdapter.connect() got an unexpected keyword argument 'is_reconnect'
Root Cause Analysis (optional)
-
base.py defines: async def connect(self, *, is_reconnect: bool = False) -> bool:
-
adapter.py has: async def connect(self) -> bool:
The is_reconnect parameter was added to the base class but QQ Bot adapter was not updated.
Proposed Fix (optional)
Change line 281 in gateway/platforms/qqbot/adapter.py from:
async def connect(self) -> bool:
to:
async def connect(self, *, is_reconnect: bool = False) -> bool:
Are you willing to submit a PR for this?
Bug Description
QQ Bot adapter fails to connect because connect() method signature doesn’t match the base class. The base class BasePlatformAdapter.connect() expects an is_reconnect keyword argument, but QQAdapter.connect() doesn’t accept it.
Steps to Reproduce
Expected Behavior
QQ Bot should connect successfully and respond to messages.
Actual Behavior
Gateway fails to connect QQ Bot and keeps retrying with the same error.
Affected Component
Other
Messaging Platform (if gateway-related)
No response
Debug Report
Operating System
ubuntu 26.04
Python Version
3.12.0
Hermes Version
0.18.0
Additional Logs / Traceback (optional)
Root Cause Analysis (optional)
base.py defines: async def connect(self, *, is_reconnect: bool = False) -> bool:
adapter.py has: async def connect(self) -> bool:
The is_reconnect parameter was added to the base class but QQ Bot adapter was not updated.
Proposed Fix (optional)
Change line 281 in gateway/platforms/qqbot/adapter.py from:
to:
Are you willing to submit a PR for this?