ilinkai.weixin.qq.comgetupdates 正常,手机发出的消息机器人能收到并生成回复;下行 sendmessage 稳定返回成功(HTTP 200 / textSent: true),但手机微信 100% 收不到任何回复正文;同一回复在电脑端 WorkBuddy 界面可见。项目 | 值 |
|---|---|
iLink user_id | o9cq80woYXX7UYo3tIN0B1qmQMfQ@im.wechat |
当前 bot accountId | 4e55f2f0d06e@im.bot |
历史 bot accountId | 6a64023373ca@im.bot(14:51–15:10)、dd1bb07762b3@im.bot(14:29–14:48) |
客户端 | WorkBuddy 桌面版(Windows) |
连接模式 | polling |
时间 | 事件 |
|---|---|
14:29:27 | bot dd1bb07762b3 连接,开始轮询 |
14:29:39 | 收到手机消息,sendReply done textSent:true,手机端无回复落地 |
14:48:53 | 解绑 dd1bb07762b3(后端注销失败,见第六节) |
14:51:24 | 新 bot 6a64023373ca 连接 |
14:51–14:57 | 多轮收发,服务端均返回成功,手机 0 条落地 |
15:10:02 | 解绑 6a64023373ca(后端注销同样失败) |
15:10:22 | 新 bot 4e55f2f0d06e 连接(扫码重绑) |
15:10:28 | 收到手机消息(msgId 7531977731364583000) |
15:10:42 | sendReply done textSent:true、sendOutbound ok cost=323ms,手机仍无回复 |
15:18:37 | 轮询仍在运行(msgs:0),故障持续 |
15:10:28.830 [WeixinClawBotClient] Accepted inbound message {"msgId":"7531977731364583000","fromUserId":"o9cq...@im.wechat","textLength":2}
15:10:28.834 [ClawService] Conversation lookup ... "found":true
15:10:41.834 [ClawService] Non-webhook mode → routing reply via plugin outbound
15:10:41.834 [WeixinClawBotClient] sendReply begin {"userId":"o9cq...@im.wechat","hasContextToken":true,"textLength":6}
15:10:41.914 [WeixinClawBotClient] Sending text reply
15:10:42.157 [WeixinClawBotClient] sendReply done {"userId":"o9cq...@im.wechat","textSent":true}
15:10:42.157 [ClawPluginHost] sendOutbound ok ... cost=323ms
15:10:42.170 [ClawService] Delivered auto reply ...全时段统计:共 9 次下行发送,全部 sendReply done textSent:true / sendOutbound ok,手机端收到 0 条。
ret:0(成功确认),非参数错误。WorkBuddy 客户端在每次解绑微信助理时,向后端发起通道注销请求,均失败:
15:10:02.129 [ClawService] unregisterChannelConfig ENTER {"channelType":"weixinClawBot","hadSavedConfig":true,"savedChannelId":"6a64023373ca@im.bot"}
15:10:02.339 [ClawService] Failed to unregister weixinClawBot from backend (best-effort):
Unregister channel failed: HTTP 400 {"success":false,
"message":"Invalid or missing field: type. Must be one of: feishu, wecom, wecomNew,
dingtalk, qq, slack, wecomaibot, wechatkf, wechatmp, custom"}即:weixinClawBot 不在后端允许的通道类型白名单内,解绑从未在服务端成功执行,残留绑定/路由未被清除。这与社区已确认的"下行路由仍指向历史失效 session,消息被投递到失效目标后静默丢弃"现象高度吻合。
请核查该微信号在 iLink 侧的下行路由是否仍指向历史 session,并予以清理。
o9cq80woYXX7UYo3tIN0B1qmQMfQ@im.wechat 在 iLink / ClawBot 侧指向历史失效连接的残留绑定与路由缓存,使新绑定的 bot 能正常下行投递。工单页面抓取时,第四节日志片段和第六节 400 错误原文未显示(可能是网页编辑器把代码块过滤了)。若你在页面上确认这两段确实没贴进去,用下面的纯文本以"补充"形式追加到问题里:
证据一:下行发送成功但手机 0 落地(主进程日志)
15:10:28.830 [WeixinClawBotClient] Accepted inbound message {"msgId":"7531977731364583000","fromUserId":"o9cq...@im.wechat","textLength":2} 15:10:41.834 [WeixinClawBotClient] sendReply begin {"userId":"o9cq...@im.wechat","hasContextToken":true,"textLength":6} 15:10:41.914 [WeixinClawBotClient] Sending text reply 15:10:42.157 [WeixinClawBotClient] sendReply done {"userId":"o9cq...@im.wechat","textSent":true} 15:10:42.157 [ClawPluginHost] sendOutbound ok cost=323ms 15:10:42.170 [ClawService] Delivered auto reply (全时段共 9 次下行,全部 textSent:true,手机收到 0 条)
证据二:解绑时后端注销失败(关键线索)
15:10:02.129 [ClawService] unregisterChannelConfig ENTER {"channelType":"weixinClawBot","savedChannelId":"6a64023373ca@im.bot"} 15:10:02.339 [ClawService] Failed to unregister weixinClawBot from backend (best-effort): Unregister channel failed: HTTP 400 {"success":false,"message":"Invalid or missing field: type. Must be one of: feishu, wecom, wecomNew, dingtalk, qq, slack, wecomaibot, wechatkf, wechatmp, custom"}
相似问题