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

反向ws 服务器断开时报错不会重连 #731

Open
sajfasjg81 opened this issue Aug 15, 2023 · 1 comment
Open

反向ws 服务器断开时报错不会重连 #731

sajfasjg81 opened this issue Aug 15, 2023 · 1 comment

Comments

@sajfasjg81
Copy link

当反向ws连接的远程WS服务器断开后会报错

话说反向ws没有类似gocq那种聊天消息、心跳之类的上报吗(指不使用webhook)

2023-08-15 14:21:02 W/stderr: Exception in thread "DefaultDispatcher-worker-2" java.io.EOFException
2023-08-15 14:21:02 W/stderr: at mirai-api-http-2.9.1.mirai2.jar[shared]//okio.RealBufferedSource.require(RealBufferedSource.kt:199)
2023-08-15 14:21:02 W/stderr: at mirai-api-http-2.9.1.mirai2.jar[shared]//okio.RealBufferedSource.readByte(RealBufferedSource.kt:209)
2023-08-15 14:21:02 W/stderr: at mirai-api-http-2.9.1.mirai2.jar[shared]//okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.kt:119)
2023-08-15 14:21:02 W/stderr: at mirai-api-http-2.9.1.mirai2.jar[shared]//okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.kt:102)
2023-08-15 14:21:02 W/stderr: at mirai-api-http-2.9.1.mirai2.jar[shared]//okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.kt:293)
2023-08-15 14:21:02 W/stderr: at mirai-api-http-2.9.1.mirai2.jar[shared]//okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:195)
2023-08-15 14:21:02 W/stderr: at mirai-api-http-2.9.1.mirai2.jar[shared]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
2023-08-15 14:21:02 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
2023-08-15 14:21:02 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2023-08-15 14:21:02 W/stderr: at java.base/java.lang.Thread.run(Unknown Source)
2023-08-15 14:21:02 W/stderr: Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@2d53111b, Dispatchers.Default]

@bunnyi116
Copy link

bunnyi116 commented Aug 25, 2023

我建议过#730,它说没有必要。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants