<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[bot一段时间后不再收到对话消息，且出现Received unknown commandName: StatSvc.QueryHB；]]></title><description><![CDATA[<p dir="auto">前提：<br />
使用的是自己写的直接使用mirai-core的程序，同时登陆两个bot（277xxxx622，120xxxx944），两个bot均登陆成功并收发消息了一段时间。</p>
<p dir="auto">问题：<br />
10:02:04起，观察到同一个群里，bot_120xxxx944可以正常收到对话消息（之后也一直正常），而bot_277xxxx622不再收到对话消息:</p>
<blockquote>
<p dir="auto"><strong>只有</strong> 2021-06-15 10:02:04 V/Bot <strong>120xxxx944</strong>: [群名(群号)] 群员名(群员号) -&gt; 消息<br />
<strong>没有</strong> 2021-06-15 10:02:04 V/Bot  <strong>277xxxx622</strong>: [群名(群号)] 群员名(群员号) -&gt; 消息</p>
</blockquote>
<p dir="auto">上述现象出现之后bot_277xxxx622的第一次Send: StatSvc.SimpleGet日志:</p>
<blockquote>
<p dir="auto">19|mirai-s | 2021-06-15 10:02:48 V/Net 277xxxx622: Send: StatSvc.SimpleGet<br />
19|mirai-s | 2021-06-15 10:02:48 D/Net 277xxxx622: Received unknown commandName: StatSvc.QueryHB<br />
19|mirai-s | 2021-06-15 10:02:48 V/Net 277xxxx622: Recv: Response(SimpleGet.Response)</p>
</blockquote>
<p dir="auto">第二次以及之后的每一次Send: StatSvc.SimpleGet日志：</p>
<blockquote>
<p dir="auto">19|mirai-server  | 2021-06-15 10:20:49 V/Net 277xxxx622: Send: StatSvc.SimpleGet<br />
19|mirai-server  | 2021-06-15 10:20:49 D/Net 277xxxx622: Received unknown commandName: StatSvc.QueryHB<br />
19|mirai-server  | 2021-06-15 10:20:49 D/Net 277xxxx622: Received unknown commandName: StatSvc.QueryHB<br />
19|mirai-server  | 2021-06-15 10:20:49 V/Net 277xxxx622: Recv: Response(SimpleGet.Response)</p>
</blockquote>
<p dir="auto">其Heartbeat.Alive无异常。</p>
<blockquote>
<p dir="auto">19|mirai-server  | 2021-06-15 10:30:21 V/Net 277xxxx622: Send: Heartbeat.Alive<br />
19|mirai-server  | 2021-06-15 10:30:21 V/Net 277xxxx622: Recv: Heartbeat.Alive.Response</p>
</blockquote>
<p dir="auto">使用PC端qq登录277xxxx622可正常收发消息。</p>
]]></description><link>https://mirai.mamoe.net/topic/304/bot一段时间后不再收到对话消息-且出现received-unknown-commandname-statsvc-queryhb</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 16:39:49 GMT</lastBuildDate><atom:link href="https://mirai.mamoe.net/topic/304.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Jun 2021 04:19:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bot一段时间后不再收到对话消息，且出现Received unknown commandName: StatSvc.QueryHB； on Tue, 15 Jun 2021 09:50:40 GMT]]></title><description><![CDATA[<p dir="auto">会在 2.7-M1 修复</p>
]]></description><link>https://mirai.mamoe.net/post/1736</link><guid isPermaLink="true">https://mirai.mamoe.net/post/1736</guid><dc:creator><![CDATA[Him188]]></dc:creator><pubDate>Tue, 15 Jun 2021 09:50:40 GMT</pubDate></item><item><title><![CDATA[Reply to bot一段时间后不再收到对话消息，且出现Received unknown commandName: StatSvc.QueryHB； on Tue, 15 Jun 2021 09:36:53 GMT]]></title><description><![CDATA[<p dir="auto">很神奇的问题<br />
<a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/6">@Him188</a></p>
]]></description><link>https://mirai.mamoe.net/post/1735</link><guid isPermaLink="true">https://mirai.mamoe.net/post/1735</guid><dc:creator><![CDATA[RainChan]]></dc:creator><pubDate>Tue, 15 Jun 2021 09:36:53 GMT</pubDate></item><item><title><![CDATA[Reply to bot一段时间后不再收到对话消息，且出现Received unknown commandName: StatSvc.QueryHB； on Tue, 15 Jun 2021 04:58:24 GMT]]></title><description><![CDATA[<p dir="auto">重启应用并重新登录后未再出现此问题。检索了下两周以来的日志，该问题也只出现了这一次。<br />
不过我还是觉得当时并没有进行同时登陆强制下线或手动踢下线。</p>
]]></description><link>https://mirai.mamoe.net/post/1728</link><guid isPermaLink="true">https://mirai.mamoe.net/post/1728</guid><dc:creator><![CDATA[hundun000]]></dc:creator><pubDate>Tue, 15 Jun 2021 04:58:24 GMT</pubDate></item><item><title><![CDATA[Reply to bot一段时间后不再收到对话消息，且出现Received unknown commandName: StatSvc.QueryHB； on Tue, 15 Jun 2021 04:31:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/913">@hundun000</a> 可能是其他客户端同时登录一个账号导致强制下线，或者是手动踢下线</p>
]]></description><link>https://mirai.mamoe.net/post/1724</link><guid isPermaLink="true">https://mirai.mamoe.net/post/1724</guid><dc:creator><![CDATA[RainChan]]></dc:creator><pubDate>Tue, 15 Jun 2021 04:31:33 GMT</pubDate></item><item><title><![CDATA[Reply to bot一段时间后不再收到对话消息，且出现Received unknown commandName: StatSvc.QueryHB； on Tue, 15 Jun 2021 04:30:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://mirai.mamoe.net/uid/1">@rainchan</a> 2.6.1</p>
]]></description><link>https://mirai.mamoe.net/post/1723</link><guid isPermaLink="true">https://mirai.mamoe.net/post/1723</guid><dc:creator><![CDATA[hundun000]]></dc:creator><pubDate>Tue, 15 Jun 2021 04:30:27 GMT</pubDate></item><item><title><![CDATA[Reply to bot一段时间后不再收到对话消息，且出现Received unknown commandName: StatSvc.QueryHB； on Tue, 15 Jun 2021 04:23:03 GMT]]></title><description><![CDATA[<p dir="auto">你的版本号？</p>
]]></description><link>https://mirai.mamoe.net/post/1722</link><guid isPermaLink="true">https://mirai.mamoe.net/post/1722</guid><dc:creator><![CDATA[RainChan]]></dc:creator><pubDate>Tue, 15 Jun 2021 04:23:03 GMT</pubDate></item></channel></rss>