Skip to content
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

Open
HanamiSeishin opened this issue Jul 29, 2024 · 6 comments
Open

消息发送失败 #75

HanamiSeishin opened this issue Jul 29, 2024 · 6 comments
Labels
question 对错误或其它问题进行提问

Comments

@HanamiSeishin
Copy link

问题描述

overflow发送消息未产生报错日志,llonebot无日志,starbot提示发送消息失败

复现

问题产生原因未知,重启overflow后能恢复正常,运行一段时间后概率发生该问题

Overflow 版本

b2f275f

其他组件版本

starbot 2.0.10
mirai-api-http-2.10.0
llonebot 3.27.3
java 17

系统日志

2024-07-29 16:50:14 V/Bot.2725480293: Group(778011202) <- 东爱璃Lovely 转发了动态
https://t.bilibili.com/959515442224824341
[overflow:image,url=base64://iVBORw0KGgoAAAANSUhEUgA... (png, about 492.04 KB)

网络日志

该时间点无相关日志
上传完整日志文件

补充信息

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 "/home/starbot/starbot/core/sender.py", line 170, in send_message
await self.__bot.send_group_message(msg.id, message)
│ │ │ └ MessageChain([Plain(text='东爱璃Lovely 转发了动态\nhttps://t.bilibili.com/959514888156217361\n'), Image(base64='iVBORw0KGgoAAAANSUhEU...
│ │ └ 778011202
│ └ Message(id=778011202, content='东爱璃Lovely 转发了动态\nhttps://t.bilibili.com/959514888156217361\n{base64pic=iVBORw0KGgoAAAANSUhEUgA...
└ 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 "/home/starbot/starbot/core/sender.py", line 170, in send_message
await self.__bot.send_group_message(msg.id, message)
│ │ │ └ MessageChain([Plain(text='东爱璃Lovely 转发了动态\nhttps://t.bilibili.com/959515442224824341\n'), Image(base64='iVBORw0KGgoAAAANSUhEU...
│ │ └ 778011202
│ └ Message(id=778011202, content='东爱璃Lovely 转发了动态\nhttps://t.bilibili.com/959515442224824341\n{base64pic=iVBORw0KGgoAAAANSUhEUgA...
└ 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

@HanamiSeishin HanamiSeishin added the question 对错误或其它问题进行提问 label Jul 29, 2024
@MrXiaoM
Copy link
Owner

MrXiaoM commented Jul 29, 2024

python 看不懂啦

@MrXiaoM
Copy link
Owner

MrXiaoM commented Jul 29, 2024

看错了

@MrXiaoM
Copy link
Owner

MrXiaoM commented Jul 29, 2024

消息发送失败的原因是,发送消息后无法从回执中取得消息id,但是从你的网络日志中却没有找到任何一条在该时间段的发送记录。信息不足,无法确定问题

@HanamiSeishin
Copy link
Author

是的,在llonebot日志中没有发送记录和相关日志,是通过重启qqnt和starbot问题存在和重启overflow后问题得到解决定位到可能是overflow的问题,后续问题如果复现是否有辅助定位手段

另外发送消息成功日志如下
image
上述问题发生时没有黄色打印

@HanamiSeishin
Copy link
Author

更换napcat之后经过一番调试发现了触发该问题的条件
image
把napcat或者llonebot断线重连后,该问题必现,需要重启overflow才能得到解决

@Lssg97
Copy link

Lssg97 commented Aug 22, 2024

该问题在我这里最近复现了。经过如下:

先前本人是 overflow-core-all-2.16.0-a62b0ff-SNAPSHOT 搭配 LLOneBot-3.19.2 使用,二者部署在两台服务器,使用反向 WS 进行连接。网络波动偶尔会导致连接短暂断开又恢复,但并不影响 overflow 后续继续收发消息。下为例子,是以前网络波动导致断连后出现的相关日志。

ubuntu@oracle-cloud:~/data/overflow/mirai/logs$ cat 2024-07-16.log | grep 反向
2024-07-16 20:48:46 I/Onebot: ▌ 反向 WebSocket 客户端连接因 The connection was closed because the other endpoint did not respond with a pong in time. For more information check: https://github.com/TooTallNate/Java-WebSocket/wiki/Lost-connection-detection 已关闭 (关闭码: ABNORMAL_CLOSE)
2024-07-16 20:50:00 I/Onebot: ▌ 反向 WebSocket 客户端 /154.12.82.73:55767 已连接 ┈━═☆

因为新版 LLOneBot 可以识别 戳一戳 指令,所以眼馋将 LLOneBot 升级到 v3.29.5,并将 overflow 升级到 481d3c4。之后便出现了时不时消息发送失败的情况,但接收消息一切正常,重启 overflow 后可恢复正常发消息。发送失败时候显示日志如下(使用 /overflow friend 指令进行测试):

ubuntu@oracle-cloud:~/data/overflow/mirai/logs$ cat 2024-08-20.log | grep 08:50:15 -A 33
2024-08-20 08:50:15 V/Bot.1654453621: [<%ĀĀÔ><$ÿĀ><$ÿĀ><%ĀĀÔ>咸窝窝<$ÿĀ><$ÿĀ>(959186259)] 荠菜丸子(2281569172) -> [mirai:at:2263176857][mirai:at:2685261467] 龙友十1
2024-08-20 08:50:19 V/Bot.1654453621: Friend(760265690) <- 早
2024-08-20 08:50:19 E/console: java.lang.IllegalStateException: 消息发送失败,详见网络日志 (logs/onebot/*.log) 和 Onebot 实现 (LLOneBot v3.29.5) 的日志
java.lang.IllegalStateException: 消息发送失败,详见网络日志 (logs/onebot/*.log) 和 Onebot 实现 (LLOneBot v3.29.5) 的日志
	at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt.safeMessageIds(TransformerUtils.kt:97)
	at top.mrxiaom.overflow.internal.contact.FriendWrapper.sendMessage(FriendWrapper.kt:62)
	at top.mrxiaom.overflow.internal.plugin.OverflowCoreAsPlugin$onEnable$6.friend(OverflowCoreAsPlugin.kt:294)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
	at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
	at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
	at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:159)
	at kotlin.reflect.full.KCallables.callSuspendBy(KCallables.kt:74)
	at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invokeSuspend(CommandReflector.kt:339)
	at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
	at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
	at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call$suspendImpl(CommandSignature.kt:84)
	at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call(CommandSignature.kt)
	at net.mamoe.mirai.console.internal.command.CommandManagerImplKt.executeCommandImpl(CommandManagerImpl.kt:168)
	at net.mamoe.mirai.console.command.CommandManager.executeCommand$suspendImpl(CommandManager.kt:131)
	at net.mamoe.mirai.console.command.CommandManager.executeCommand(CommandManager.kt)
	at net.mamoe.mirai.console.command.CommandManager$INSTANCE.executeCommand(CommandManager.kt)
	at net.mamoe.mirai.console.terminal.ConsoleThreadKt$startupConsoleThread$3.invokeSuspend(ConsoleThread.kt:187)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

2024-08-20 08:50:25 V/Bot.1654453621: [<%ĀĀÔ><$ÿĀ><$ÿĀ><%ĀĀÔ>咸窝窝<$ÿĀ><$ÿĀ>(959186259)] 荠菜丸子(2281569172) -> [overflow:image,url=https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoyMjgxNTY5MTcyEhQPgfCRw-KWVuQbnYJypL5wpkZrfxiK9w4g_woo2tPi_KyCiANQgL2jAQ&spec=0&rkey=CAQSKAB6JWENi5LMdwnzdUT45oFjSXXd05IvFCEMlcqbpHJme9ORJwuc4Rc]

开始并不知道原因,后来检查日志筛选后发现症状出现于每次反向 WS 断连又恢复后。尝试更换正向 WS 连接,结果断连再恢复后连接收消息都做不到了。日志如下:

2024-08-20 14:56:22 V/Bot.1654453621: [纪事寒冰洞窟(922284018)] 一ノ瀬 威太(1713492742) -> 你波有点像中午才醒
2024-08-20 14:58:17 I/Onebot: ▌ 服务器连接因 未知原因 已关闭 (关闭码: ABNORMAL_CLOSE)
2024-08-20 14:58:17 W/Onebot: 等待 5.0 秒后重连 (第 1/5 次)
2024-08-20 14:58:22 I/Onebot: 正在重连...
2024-08-20 14:58:23 I/Onebot: ▌ 已连接到服务器 ┈━═☆
2024-08-20 14:58:23 I/Onebot: ▌ 服务器连接因 未知原因 已关闭 (关闭码: NORMAL)
2024-08-20 14:58:23 W/Overflow: 接收到来自协议端的未知事件 {"time":1724137102,"self_id":1654453621,"post_type":"meta_event","meta_event_type":"lifecycle","sub_type":"connect"}
2024-08-20 15:06:05 V/Bot.1654453621: Group(478798041) <- 白色de黑 直播结束啦!
直播时长: 50分钟 39秒
2024-08-20 15:06:05 E/BiliBili Dynamic: 发送消息失败!
java.lang.IllegalStateException: 消息发送失败,详见网络日志 (logs/onebot/*.log) 和 Onebot 实现 (LLOneBot v3.29.5) 的日志
	at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt.safeMessageIds(TransformerUtils.kt:97)
	at top.mrxiaom.overflow.internal.contact.GroupWrapper.sendMessage(GroupWrapper.kt:176)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker.sendMessage(SendTasker.kt:168)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invokeSuspend(SendTasker.kt:136)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invoke(SendTasker.kt)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invoke(SendTasker.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:100)
	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:146)
	at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker.main(SendTasker.kt:51)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.BiliTasker$start$1.invokeSuspend(BiliTasker.kt:46)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

2024-08-20 18:05:37 V/Bot.1654453621: Group(768582868) <- 莱耶斯_ 直播结束啦!
直播时长: 7小时 9秒
2024-08-20 18:05:37 E/BiliBili Dynamic: 发送消息失败!
java.lang.IllegalStateException: 消息发送失败,详见网络日志 (logs/onebot/*.log) 和 Onebot 实现 (LLOneBot v3.29.5) 的日志
	at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt.safeMessageIds(TransformerUtils.kt:97)
	at top.mrxiaom.overflow.internal.contact.GroupWrapper.sendMessage(GroupWrapper.kt:176)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker.sendMessage(SendTasker.kt:168)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invokeSuspend(SendTasker.kt:136)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invoke(SendTasker.kt)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invoke(SendTasker.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:100)
	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:146)
	at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker.main(SendTasker.kt:51)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.BiliTasker$start$1.invokeSuspend(BiliTasker.kt:46)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

2024-08-20 18:46:40 V/Bot.1654453621: Group(883920076) <- [overflow:image,url=base64://iVBORw0KGgoAAAANSUhEUgA... (png, about 635.52 KB)]
在下狼灰@直播
https://live.bilibili.com/22244206
2024-08-20 18:46:40 E/BiliBili Dynamic: 发送消息失败!
java.lang.IllegalStateException: 消息发送失败,详见网络日志 (logs/onebot/*.log) 和 Onebot 实现 (LLOneBot v3.29.5) 的日志
	at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt.safeMessageIds(TransformerUtils.kt:97)
	at top.mrxiaom.overflow.internal.contact.GroupWrapper.sendMessage(GroupWrapper.kt:176)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker.sendMessage(SendTasker.kt:168)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invokeSuspend(SendTasker.kt:136)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invoke(SendTasker.kt)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invoke(SendTasker.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:100)
	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:146)
	at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker.main(SendTasker.kt:51)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.BiliTasker$start$1.invokeSuspend(BiliTasker.kt:46)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

2024-08-20 18:46:42 V/Bot.1654453621: Group(571870954) <- [overflow:image,url=base64://iVBORw0KGgoAAAANSUhEUgA... (png, about 635.52 KB)]
在下狼灰@直播
https://live.bilibili.com/22244206
[mirai:atall]
2024-08-20 18:46:42 E/BiliBili Dynamic: 发送消息失败!
java.lang.IllegalStateException: 消息发送失败,详见网络日志 (logs/onebot/*.log) 和 Onebot 实现 (LLOneBot v3.29.5) 的日志
	at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt.safeMessageIds(TransformerUtils.kt:97)
	at top.mrxiaom.overflow.internal.contact.GroupWrapper.sendMessage(GroupWrapper.kt:176)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker.sendMessage(SendTasker.kt:168)
	at bilibili-dynamic-mirai-plugin-3.2.11.mirai2.jar//top.colter.mirai.plugin.bilibili.tasker.SendTasker$main$3.invokeSuspend(SendTasker.kt:136)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

由于 overflow 和 LLOneBot 均进行了升级,因此并不知道究竟是哪个出的问题。目前我个人解决方法是换用 napcat,将其与 overflow 部署到了同一台服务器上,彻底杜绝出现网络断连问题。但是这个反向 WS 断连后不能发消息,正向 WS 断连后无法收发消息的问题目前依然存在。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 对错误或其它问题进行提问
Projects
None yet
Development

No branches or pull requests

3 participants