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

japt掉线重新连接后能发送信息,但不能触发好友消息事件,也不能进行heartbeat #62

Closed
PopSlime opened this issue Feb 17, 2020 · 4 comments
Assignees
Labels
M 优先级: 主要 t:bug 类型: bug
Milestone

Comments

@PopSlime
Copy link

No description provided.

@Him188 Him188 added t:bug 类型: bug core M 优先级: 主要 labels Feb 17, 2020
@Him188 Him188 self-assigned this Feb 17, 2020
@PopSlime
Copy link
Author

更新:
此bug应该是由于bot处于在线状态时再次login()而触发的。

@Him188
Copy link
Member

Him188 commented Feb 17, 2020

login 前没有掉线?

@PopSlime
Copy link
Author

第二次login后触发了BotOnlineEvent,然后触发了第一次login的BotOfflineEvent.Dropped。这应该是由同一平台不能同时登陆同一账号的机制导致的。

@PopSlime
Copy link
Author

更新#2:意外的掉线重连后也不能发送心跳包
日志:
Network(/* uin /) 17:10:52 : Send: Heartbeat.Alive
Network(/
uin /) 17:10:52 : Received: Heartbeat.Alive.Response
Network(/
uin /) 17:11:52 : Send: Heartbeat.Alive
Network(/
uin /) 17:11:52 : Received: Heartbeat.Alive.Response
Network(/
uin /) 17:12:52 : Send: Heartbeat.Alive
Network(/
uin /) 17:12:52 : Received: Heartbeat.Alive.Response // 掉线前心跳包正常
Bot(/
uin /) 17:13:16 : Connection dropped or lost by server, retrying login
Network(/
uin /) 17:13:16 : Send: StatSvc.register
Network(/
uin /) 17:13:19 : Cannot do fast relogin. Trying slow relogin
Network(/
uin /) 17:13:19 : Send: wtlogin.login
Network(/
uin /) 17:13:19 : Received: LoginPacketResponse.Success
Network(/
uin /) 17:13:19 : Login successful
Network(/
uin /) 17:13:19 : Send: StatSvc.register
Network(/
uin /) 17:13:19 : Received: Response(StatSvc.register)
Bot(/
uin /) 17:13:19 : Reconnected successfully
Network(/
uin /) 17:13:22 : Received: PushReq(type=1, jcebuf=/ buffer /, seq=6197165547)
Network(/
uin /) 17:13:22 : Send: ConfigPushSvc.PushResp
�[96mNetwork(/
uin /) 17:13:22 : Received commandName: ConfigPushSvc.PushDomain
Network(/
uin /) 17:13:22 : Received: PushReq(type=2, jcebuf=/ buffer /, seq=6197165943)
Network(/
uin /) 17:13:22 : Send: ConfigPushSvc.PushResp
Console input: exit // 掉线后持续56分钟没有发送心跳包,才注意到,就关闭了
Bot(/
uin /) 18:07:25 : Connection dropped or lost by server, retrying login
Network(/
uin /) 18:07:25 : Cannot do fast relogin. Trying slow relogin
Network(/
uin */) 18:07:25 : Send: wtlogin.login // 新BUG:dispose后bot仍会尝试重新登录。由于我输入exit结束了主进程而被打断

@Him188 Him188 added this to the mirai-core 1.0.0 milestone Feb 19, 2020
@Him188 Him188 closed this as completed in 0ce0b33 Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 优先级: 主要 t:bug 类型: bug
Projects
None yet
Development

No branches or pull requests

2 participants