yyuueexxiinngg / onebot-kotlin

OneBot标准的Kotlin实现及mirai插件 - 原cqhttp-mirai
GNU Affero General Public License v3.0
584 stars 139 forks source link

[Question]反向WS连接会在大概一天之后断开并且重连失败。 #135

Closed a08381 closed 3 years ago

a08381 commented 3 years ago

插件大致log如下:

2021-02-03 12:00:09 I/main: Starting mirai-console...
2021-02-03 12:00:09 I/main: Backend: version 2.2.0, built on 2021-01-29 12:31:35.
2021-02-03 12:00:09 I/main: Frontend Terminal: version 2.2.0, provided by Mamoe Technologies
2021-02-03 12:00:09 I/plugin: Successfully loaded plugin OneBot
2021-02-03 12:00:10 I/main: Prepared built-in commands: autoLogin, help, login, permission, status, stop
2021-02-03 12:00:11 I/OneBot: Plugin loaded! 0.3.4
2021-02-03 12:00:11 I/OneBot: 插件当前Commit 版本: 78861dd
2021-02-03 12:00:11 I/main: 1 plugin(s) enabled.
2021-02-03 12:00:11 I/main: Auto-login 314****867
2021-02-03 12:00:14 I/Bot.314****867: Logging in...
2021-02-03 12:00:16 I/Bot.314****867: No OtherClient online.
2021-02-03 12:00:27 I/OneBot: Bot: 314****867 HTTP API服务端是否配置开启: true
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2021-02-03 12:00:27 I/OneBot: Bot: 314****867 正向Websocket服务端是否配置开启: false
2021-02-03 12:00:27 I/OneBot: Bot: 314****867 已开启接收图片缓存, 将会缓存收取到的所有图片
2021-02-03 12:00:27 I/OneBot: Bot: 314****867 已开启接收语音缓存, 将会缓存收取到的所有语音
2021-02-03 12:00:27 I/OneBot: Bot: 314****867 已开启心跳机制, 设定的心跳发送频率为 1500 毫秒
2021-02-03 12:00:27 I/Bot.314****867: Login successful
2021-02-03 12:00:27 I/main: mirai-console started successfully.
......
2021-02-04 12:00:32 W/OneBot: WS Reverse事件发送失败, 连接已被关闭, 尝试重连中 127.0.0.1:8002-Client-Universal
2021-02-04 12:00:33 I/OneBot: Websocket连接关闭中, Host: 127.0.0.1:8002-Client-Universal Path: /ws

通过访问http://127.0.0.1:5700/send_private_msg?user_id=143****151&message=我还活着!发现mirai还是正常可用状态,所以确认问题出在onebot上了。

之后会开启debug模式看看有没有报错。

image