Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bug: kook适配器ws意外断开后重连未检验是否成功 #329

Open
Hieuzest opened this issue Nov 28, 2024 · 1 comment
Open

Bug: kook适配器ws意外断开后重连未检验是否成功 #329

Hieuzest opened this issue Nov 28, 2024 · 1 comment

Comments

@Hieuzest
Copy link
Contributor

根据kook文档,ws连接gateway后应在6s内收到hello包。在某些场景下ws意外断开后,重连未能收到hello,此时应当拒绝并回到重连逻辑。否则此时BOT将处于假死状态,无法收到任何事件。

{"id":46005,"type":"warn","level":2,"name":"adapter","meta":{"paths":["uj5vdr"]},"content":"failed to connect to wss://ws.kaiheila.cn/gateway, code: 1006, will retry in 5s...","timestamp":1732749580475}
{"id":46012,"type":"info","level":2,"name":"adapter","meta":{"paths":["uj5vdr"]},"content":"connect to server: \u001b[38;5;44mwss://ws.kaiheila.cn/gateway\u001b[0m","timestamp":1732749588339}
{"id":46055,"type":"debug","level":3,"name":"kook","meta":{"paths":["uj5vdr"]},"content":"[receive] { s: \u001b[33m3\u001b[39m }","timestamp":1732749618609}
{"id":46088,"type":"debug","level":3,"name":"kook","meta":{"paths":["uj5vdr"]},"content":"[receive] { s: \u001b[33m3\u001b[39m }","timestamp":1732749648609}
@Hieuzest
Copy link
Contributor Author

duplicate of #283

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

No branches or pull requests

1 participant