AstrBot
AstrBot copied to clipboard
[Bug]websocketAPI错误
发生了什么
运行一段时间后提示websocketAPI连接超时,报错示例见下。 使用llonebot作为消息平台,qq保持在线且正常启动,llonebot正常。默认插件helloworld运行正常且有回复
一开始的几条消息能够成功发送,后面的消息无法发送
如何复现?
通过命令行启动astrbot,确保llonebot正常运行。 加载helloworld插件与send_message_on_time插件(仓库见[email protected]:creeper-scr/astrbot_plugin_send_msg_ontime_public.git 运行几分钟至几十分钟不等后,报错wsAPI time out(见额外信息)
(
AstrBot 版本与部署方式
v3.3.9命令行部署
操作系统
Windows
额外信息
`2024-08-17 00:06:23.702| ERROR |MainThread|astrbot.handle_task|bootstrap.py:107 - Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\tasks.py", line 490, in wait_for return fut.result() ^^^^^^^^^^^^ asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiocqhttp\api_impl.py", line 104, in fetch return await asyncio.wait_for(future, timeout_sec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\tasks.py", line 492, in wait_for raise exceptions.TimeoutError() from exc TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "D:\apps\qqBot\AstrBot\astrbot\bootstrap.py", line 101, in handle_task result = await task ^^^^^^^^^^ aiocqhttp.exceptions.NetworkError: WebSocket API call timeout`
你愿意提交 PR 吗?
- [ ] 是的,我愿意提交 PR!
Code of Conduct
- [X] 我已阅读并同意遵守该项目的 行为准则。