wechaty / puppet-supports

Wechaty Puppet Services (WPS)
https://wechaty.js.org/docs/puppet-services/
Apache License 2.0
33 stars 4 forks source link

WXWork: GError: 14 UNAVAILABLE: No connection established #572

Open charleyCC opened 3 weeks ago

charleyCC commented 3 weeks ago

Please make sure you have read the Wechaty Puppet Service: WXWork from Wechaty Official Website before you continue writting this issue.

Question

我用的是付费版的token,但是不稳定,经常报No connection established,自动触发重启bot后,又会报ResolverWechaty updateResolution() address not found target wechaty://token-service-discovery-test.juzibot.com/puppet_workpro_xxxxxxxxxxxxxxxxxxxx: token does not exist 请问是啥原因呢,是网络不稳定导致的吗

hcfw007 commented 3 weeks ago

如果是12点左右出这个问题,一般是在更新。如果是其他时间,可以提供时间和token后6位,帮你看看那段时间有没有问题。

charleyCC commented 2 weeks ago

时间点:今日凌晨01:15:37 token后6位:0629a7

hcfw007 commented 2 weeks ago

这个时间点肯定是因为更新了。 你需要针对断开连接的错误码监听 error 和 logout 事件,并设计重连。

charleyCC commented 2 weeks ago

重连指的是重新登录吗?我有监听报错的事件,只是直接就重启机器人的,但是都重启不成功