使用./mcl -u更新到最新的overflow core后,连接到websocket时报错
QSlotus opened this issue · 0 comments
QSlotus commented
问题描述
使用./mcl -u更新到最新的overflow core后,连接到websocket时报错
Onebot端使用的是Lagrange,已配置了正向ws连接
并且已经在Overflow的 overflow.json
中配置了反向ws连接地址
报错日志:
2024-06-21 21:37:21 I/main: 8 plugin(s) enabled.
如需关闭控制台,请按下 Ctrl+C 组合键,或使用命令 /stop 来关闭。强制结束进程/关闭窗口可能会导致数据丢失
2024-06-21 21:37:21 I/Onebot: Overflow v2.16.0-2446d3f-SNAPSHOT.1 正在运行
2024-06-21 21:37:21 I/Onebot: 连接到 WebSocket: ws://127.0.0.1:8083
2024-06-21 21:37:21 E/main: Exception in coroutine MiraiConsoleImplementationTerminal
java.lang.IllegalStateException: Current context doesn't contain Job in it: CoroutineName(overflow)
at kotlinx.coroutines.JobKt__JobKt.getJob(Job.kt:630)
at kotlinx.coroutines.JobKt.getJob(Unknown Source)
at top.mrxiaom.overflow.internal.Overflow.start0(Overflow.kt:214)
at top.mrxiaom.overflow.internal.Overflow.startWithConfig(Overflow.kt:183)
at top.mrxiaom.overflow.internal.plugin.OverflowCoreAsPlugin.startWithConfig$overflow_core(OverflowCoreAsPlugin.kt:291)
at top.mrxiaom.overflow.internal.plugin.OverflowCoreAsPlugin.startWithConfig$overflow_core$default(OverflowCoreAsPlugin.kt:290)
at top.mrxiaom.overflow.internal.plugin.OverflowCoreAsPlugin.onPostStartup(OverflowCoreAsPlugin.kt:287)
at top.mrxiaom.overflow.internal.plugin.OverflowCoreAsPlugin.access$onPostStartup(OverflowCoreAsPlugin.kt:45)
at top.mrxiaom.overflow.internal.plugin.OverflowCoreAsPlugin$onEnable$1.invokeSuspend(OverflowCoreAsPlugin.kt:76)
at top.mrxiaom.overflow.internal.plugin.OverflowCoreAsPlugin$onEnable$1.invoke(OverflowCoreAsPlugin.kt)
at top.mrxiaom.overflow.internal.plugin.OverflowCoreAsPlugin$onEnable$1.invoke(OverflowCoreAsPlugin.kt)
at net.mamoe.mirai.event.EventChannel$subscribeOnce$1.invokeSuspend(EventChannel.kt:515)
at net.mamoe.mirai.event.EventChannel$subscribeOnce$1.invoke(EventChannel.kt)
at net.mamoe.mirai.event.EventChannel$subscribeOnce$1.invoke(EventChannel.kt)
at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invokeSuspend(SafeListener.kt:59)
at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:169)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.internal.event.SafeListener.onEvent(SafeListener.kt:59)
at net.mamoe.mirai.internal.event.EventListeners.process(EventListeners.kt:113)
at net.mamoe.mirai.internal.event.EventListeners.callListeners$overflow_core(EventListeners.kt:67)
at net.mamoe.mirai.internal.event.EventChannelImpl.callListeners(EventChannelImpl.kt:86)
at net.mamoe.mirai.internal.event.EventChannelImpl.broadcastEventImpl(EventChannelImpl.kt:76)
at top.mrxiaom.overflow.internal.Overflow.broadcastEvent(Overflow.kt:336)
at net.mamoe.mirai.event.EventKt.broadcast(Event.kt:161)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge$doStart$13$1.invokeSuspend(MiraiConsoleImplementationBridge.kt:457)
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-06-21 21:37:22 I/main: mirai-console started successfully.
oveflow.json
内容:
{
"ws_host": "ws://127.0.0.1:8083",
"reversed_ws_port": -1,
"token": "",
"no_platform": false,
"retry_times": 5,
"retry_wait_mills": 5000,
"retry_rest_mills": 60000
}
复现
- 使用
./mcl -u
更新到最新的overflow core - 连接到一个正向ws服务
- 报错
Overflow 版本
其他组件版本
mirai-console版本 2.16.0
Lagrange版本 nightly-release
系统日志
No response
网络日志
No response
补充信息
No response