-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
消息发送失败 #75
Comments
python 看不懂啦 |
看错了 |
消息发送失败的原因是,发送消息后无法从回执中取得消息id,但是从你的网络日志中却没有找到任何一条在该时间段的发送记录。信息不足,无法确定问题 |
该问题在我这里最近复现了。经过如下: 先前本人是 overflow-core-all-2.16.0-a62b0ff-SNAPSHOT 搭配 LLOneBot-3.19.2 使用,二者部署在两台服务器,使用反向 WS 进行连接。网络波动偶尔会导致连接短暂断开又恢复,但并不影响 overflow 后续继续收发消息。下为例子,是以前网络波动导致断连后出现的相关日志。
因为新版 LLOneBot 可以识别
开始并不知道原因,后来检查日志筛选后发现症状出现于每次反向 WS 断连又恢复后。尝试更换正向 WS 连接,结果断连再恢复后连接收消息都做不到了。日志如下:
由于 overflow 和 LLOneBot 均进行了升级,因此并不知道究竟是哪个出的问题。目前我个人解决方法是换用 napcat,将其与 overflow 部署到了同一台服务器上,彻底杜绝出现网络断连问题。但是这个反向 WS 断连后不能发消息,正向 WS 断连后无法收发消息的问题目前依然存在。 |
问题描述
overflow发送消息未产生报错日志,llonebot无日志,starbot提示发送消息失败
复现
问题产生原因未知,重启overflow后能恢复正常,运行一段时间后概率发生该问题
Overflow 版本
b2f275f
其他组件版本
starbot 2.0.10
mirai-api-http-2.10.0
llonebot 3.27.3
java 17
系统日志
网络日志
补充信息
starbot日志:
2024-07-29 16:47:51.836 | INFO | starbot.core.room:417 | [动态更新] 东爱璃Lovely
2024-07-29 16:47:53.393 | ERROR | starbot.core.sender:199 | 消息推送模块异常
Traceback (most recent call last):
File "/home/starbot/starbot/core/sender.py", line 322, in __send_push_message
await self.send_message(Message(id=target.id, content=message, type=target.type))
│ │ │ │ │ │ │ └ <PushType.Group: 1>
│ │ │ │ │ │ └ PushTarget(id=778011202, type=<PushType.Group: 1>, live_on=LiveOn(enabled=True, message='{uname} 正在直播 {title}\n{url}\n{cover}...
│ │ │ │ │ └ '东爱璃Lovely 转发了动态\nhttps://t.bilibili.com/959514888156217361\n{base64pic=iVBORw0KGgoAAAANSUhEUgAAAuQAAAcLCAYAAADyjqaVAAEAAElEQ...
│ │ │ │ └ 778011202
│ │ │ └ PushTarget(id=778011202, type=<PushType.Group: 1>, live_on=LiveOn(enabled=True, message='{uname} 正在直播 {title}\n{url}\n{cover}...
│ │ └ <class 'starbot.core.model.Message'>
│ └ <function Bot.send_message at 0x7fa0615080d0>
└ Bot(qq=2725480293, ups=[Up(uid=179418, targets=[PushTarget(id=934123315, type=<PushType.Group: 1>, live_on=LiveOn(enabled=Tru...
File "/usr/local/python3/lib/python3.10/site-packages/graia/ariadne/app.py", line 1703, in send_group_message
result = await self.connection.call(
│ │ └ <function ConnectionInterface.call at 0x7fa0ca9d63b0>
│ └ <graia.ariadne.connection.ConnectionInterface object at 0x7fa06158f1c0>
└ <graia.ariadne.app.Ariadne object at 0x7fa06150ec50>
File "/usr/local/python3/lib/python3.10/site-packages/graia/ariadne/connection/init.py", line 202, in call
return await connection.call(command, method, params, in_session=in_session)
│ │ │ │ │ └ True
│ │ │ │ └ {'target': 778011202, 'messageChain': [{'type': 'Plain', 'text': '东爱璃Lovely 转发了动态\nhttps://t.bilibili.com/959514888156217361...
│ │ │ └ <CallMethod.POST: 'POST'>
│ │ └ 'sendGroupMessage'
│ └ <function WebsocketConnectionMixin.call at 0x7fa0ca9d5c60>
└ <WebsocketClientConnection with 2 callbacks>
File "/usr/local/python3/lib/python3.10/site-packages/graia/ariadne/connection/ws.py", line 116, in call
return await fut
└ <Future finished exception=RemoteException('网络异常: 无头客户端处发生错误, 你应该检查其输出的错误日志.', {'code': 500, 'msg': '消息发送失败,详见网络日志 (logs/oneb...
graia.ariadne.exception.RemoteException: ('网络异常: 无头客户端处发生错误, 你应该检查其输出的错误日志.', {'code': 500, 'msg': '消息发送失败,详见网络日志 (logs/onebot/*.log) 和 Onebot 实现 (LLOneBot v3.27.3) 的日志'})
2024-07-29 16:50:04.106 | INFO | starbot.core.room:417 | [动态更新] 东爱璃Lovely
2024-07-29 16:50:14.983 | ERROR | starbot.core.sender:199 | 消息推送模块异常
Traceback (most recent call last):
File "/home/starbot/starbot/core/sender.py", line 322, in __send_push_message
await self.send_message(Message(id=target.id, content=message, type=target.type))
│ │ │ │ │ │ │ └ <PushType.Group: 1>
│ │ │ │ │ │ └ PushTarget(id=778011202, type=<PushType.Group: 1>, live_on=LiveOn(enabled=True, message='{uname} 正在直播 {title}\n{url}\n{cover}...
│ │ │ │ │ └ '东爱璃Lovely 转发了动态\nhttps://t.bilibili.com/959515442224824341\n{base64pic=iVBORw0KGgoAAAANSUhEUgAAAuQAAAWZCAYAAAA1vwD0AAEAAElEQ...
│ │ │ │ └ 778011202
│ │ │ └ PushTarget(id=778011202, type=<PushType.Group: 1>, live_on=LiveOn(enabled=True, message='{uname} 正在直播 {title}\n{url}\n{cover}...
│ │ └ <class 'starbot.core.model.Message'>
│ └ <function Bot.send_message at 0x7fa0615080d0>
└ Bot(qq=2725480293, ups=[Up(uid=179418, targets=[PushTarget(id=934123315, type=<PushType.Group: 1>, live_on=LiveOn(enabled=Tru...
File "/usr/local/python3/lib/python3.10/site-packages/graia/ariadne/app.py", line 1703, in send_group_message
result = await self.connection.call(
│ │ └ <function ConnectionInterface.call at 0x7fa0ca9d63b0>
│ └ <graia.ariadne.connection.ConnectionInterface object at 0x7fa06158f1c0>
└ <graia.ariadne.app.Ariadne object at 0x7fa06150ec50>
File "/usr/local/python3/lib/python3.10/site-packages/graia/ariadne/connection/init.py", line 202, in call
return await connection.call(command, method, params, in_session=in_session)
│ │ │ │ │ └ True
│ │ │ │ └ {'target': 778011202, 'messageChain': [{'type': 'Plain', 'text': '东爱璃Lovely 转发了动态\nhttps://t.bilibili.com/959515442224824341...
│ │ │ └ <CallMethod.POST: 'POST'>
│ │ └ 'sendGroupMessage'
│ └ <function WebsocketConnectionMixin.call at 0x7fa0ca9d5c60>
└ <WebsocketClientConnection with 2 callbacks>
File "/usr/local/python3/lib/python3.10/site-packages/graia/ariadne/connection/ws.py", line 116, in call
return await fut
└ <Future finished exception=RemoteException('网络异常: 无头客户端处发生错误, 你应该检查其输出的错误日志.', {'code': 500, 'msg': '消息发送失败,详见网络日志 (logs/oneb...
graia.ariadne.exception.RemoteException: ('网络异常: 无头客户端处发生错误, 你应该检查其输出的错误日志.', {'code': 500, 'msg': '消息发送失败,详见网络日志 (logs/onebot/*.log) 和 Onebot 实现 (LLOneBot v3.27.3) 的日志'})
网络日志:
2024-07-29.log
The text was updated successfully, but these errors were encountered: