Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
charleyCC opened this issue Sep 25, 2024 · 4 comments
Open

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

charleyCC opened this issue Sep 25, 2024 · 4 comments
Assignees
Labels
wxwork Wechaty Puppet WXWork

Comments

@charleyCC
Copy link

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
请问是啥原因呢,是网络不稳定导致的吗

@charleyCC charleyCC added the wxwork Wechaty Puppet WXWork label Sep 25, 2024
@hcfw007
Copy link
Member

hcfw007 commented Sep 26, 2024

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

@charleyCC
Copy link
Author

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

@hcfw007
Copy link
Member

hcfw007 commented Sep 27, 2024

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

@charleyCC
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wxwork Wechaty Puppet WXWork
Projects
None yet
Development

No branches or pull requests

3 participants