puppet-supports icon indicating copy to clipboard operation
puppet-supports copied to clipboard

[BUG]WorkPro: 一段时间不活跃,发现grpc 报错: GError: no grpc manager

Open liangzhicheng0423 opened this issue 1 year ago • 1 comments

Describe the bug

在一段时间未活跃后,控制台相继报了一些错误信息,看起来是grpc断开链接了。请问这个问题是什么原因导致的,有什么解决办法?

** Info **

  • Platform: "Linux"
  • Runtime version: node v21.7.3
  • Wechaty version: "@juzi/wechaty": "^1.0.66",
  • Wechaty Puppet version: "@juzi/wechaty-puppet": "1.0.61",
  • Wechaty Puppet Service version: "@juzi/wechaty-puppet-service": "1.0.69",

** 偶现步骤 ** Steps to reproduce the behavior: 约两小时没有消息活跃后,问题出现

** 预期行为 ** Expected behavior: 期望在不重启bot的情况下,长期运行

Screenshots

  1. 先报了一个WatchDogAgent 的 error: image
  2. 看起来是自恢复了,之后又报了"no grpc manager" image
  3. 过了不到一分钟,控制台打印了新的错误信息 image

liangzhicheng0423 avatar May 15 '24 04:05 liangzhicheng0423

连接断开是很正常的,例如我们平均每两周就会有更新,期间就会断开。需要监听 error 和 logout 事件,进行重启 bot 的处理。

hcfw007 avatar May 15 '24 05:05 hcfw007

无反馈,关闭。

hcfw007 avatar May 27 '24 02:05 hcfw007