MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    bot一段时间后不再收到对话消息,且出现Received unknown commandName: StatSvc.QueryHB;

    BUG反馈
    3
    7
    503
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hundun000 ⭐2021⭐ last edited by

      前提:
      使用的是自己写的直接使用mirai-core的程序,同时登陆两个bot(277xxxx622,120xxxx944),两个bot均登陆成功并收发消息了一段时间。

      问题:
      10:02:04起,观察到同一个群里,bot_120xxxx944可以正常收到对话消息(之后也一直正常),而bot_277xxxx622不再收到对话消息:

      只有 2021-06-15 10:02:04 V/Bot 120xxxx944: [群名(群号)] 群员名(群员号) -> 消息
      没有 2021-06-15 10:02:04 V/Bot 277xxxx622: [群名(群号)] 群员名(群员号) -> 消息

      上述现象出现之后bot_277xxxx622的第一次Send: StatSvc.SimpleGet日志:

      19|mirai-s | 2021-06-15 10:02:48 V/Net 277xxxx622: Send: StatSvc.SimpleGet
      19|mirai-s | 2021-06-15 10:02:48 D/Net 277xxxx622: Received unknown commandName: StatSvc.QueryHB
      19|mirai-s | 2021-06-15 10:02:48 V/Net 277xxxx622: Recv: Response(SimpleGet.Response)

      第二次以及之后的每一次Send: StatSvc.SimpleGet日志:

      19|mirai-server | 2021-06-15 10:20:49 V/Net 277xxxx622: Send: StatSvc.SimpleGet
      19|mirai-server | 2021-06-15 10:20:49 D/Net 277xxxx622: Received unknown commandName: StatSvc.QueryHB
      19|mirai-server | 2021-06-15 10:20:49 D/Net 277xxxx622: Received unknown commandName: StatSvc.QueryHB
      19|mirai-server | 2021-06-15 10:20:49 V/Net 277xxxx622: Recv: Response(SimpleGet.Response)

      其Heartbeat.Alive无异常。

      19|mirai-server | 2021-06-15 10:30:21 V/Net 277xxxx622: Send: Heartbeat.Alive
      19|mirai-server | 2021-06-15 10:30:21 V/Net 277xxxx622: Recv: Heartbeat.Alive.Response

      使用PC端qq登录277xxxx622可正常收发消息。

      1 Reply Last reply Reply Quote 0
      • RainChan
        RainChan 摸鱼 last edited by

        你的版本号?

        H 1 Reply Last reply Reply Quote 0
        • H
          hundun000 ⭐2021⭐ @RainChan last edited by

          @rainchan 2.6.1

          RainChan 1 Reply Last reply Reply Quote 0
          • RainChan
            RainChan 摸鱼 @hundun000 last edited by

            @hundun000 可能是其他客户端同时登录一个账号导致强制下线,或者是手动踢下线

            1 Reply Last reply Reply Quote 0
            • H
              hundun000 ⭐2021⭐ last edited by

              重启应用并重新登录后未再出现此问题。检索了下两周以来的日志,该问题也只出现了这一次。
              不过我还是觉得当时并没有进行同时登陆强制下线或手动踢下线。

              1 Reply Last reply Reply Quote 0
              • RainChan
                RainChan 摸鱼 last edited by

                很神奇的问题
                @Him188

                1 Reply Last reply Reply Quote 0
                • Him188
                  Him188 last edited by

                  会在 2.7-M1 修复

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact