wechaty / puppet-wechat

Wechaty Puppet Provider for WeChat
https://www.npmjs.com/package/wechaty-puppet-wechat
Apache License 2.0
420 stars 71 forks source link

登录后隔一段时间就自动退出登录了 #137

Open SteveSuv opened 3 years ago

SteveSuv commented 3 years ago

登录后隔一段时间就自动退出登录了,怎么设置过期时间为永久不过期,永久保持登录状态?

xiaoming902 commented 3 years ago

我也是,登录三天左右就自动推出了,什么也没操作。 21:48:07 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"heartbeat@browserbridge ding"}) 21:48:22 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"heartbeat@browserbridge ding"}) 21:48:32 VERB PuppetWeChatBridge onLoad() page.url=https://wx2.qq.com/?&lang=en 21:48:32 VERB PuppetWeChatBridge readyAngular() 21:48:32 VERB PuppetWeChatBridge inject() 21:48:32 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"heartbeat@browserbridge ding"}) 21:48:32 VERB PuppetWeChatBridge ding(ding() OK!) 21:48:32 VERB EventStreamManager grpcEmit(EVENT_TYPE_DONG[3], {"data":"ding() OK!"}) 21:48:32 VERB PuppetWeChatBridge clickSwitchAccount() 21:48:33 VERB PuppetWeChatEvent onScan({code: 0, url: https://login.weixin.qq.com/qrcode/QaUgZVng2g==}) 21:48:33 VERB MemoryCard set(PUPPET_WECHAT, [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]) 21:48:33 VERB MemoryCard save() to StorageFile</wechaty/e4604ef1-f823-bd1f-3e6d-cebd84842d9d.memory-card.json> 21:48:33 VERB StorageFile save() to /wechaty/e4604ef1-f823-bd1f-3e6d-cebd84842d9d.memory-card.json 21:48:33 VERB PuppetWeChatEvent onScan() there has user when got a scan event. emit logout and set it to null 21:48:33 VERB PuppetWeChat logout() 21:48:33 VERB Puppet selfId() 21:48:33 VERB PuppetWeChatBridge logout() 21:48:33 VERB EventStreamManager grpcEmit(EVENT_TYPE_LOGOUT[26], {"contactId":"@0bac3b4fe04e292c879bf1013577feb27b98c3dd8aaad177d4c7cf7173842a56","data":"logout()"}) 21:48:33 VERB ContactSelf name() 21:48:33 INFO IoClient 微信名 logged out 21:48:33 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":{"code":0,"url":"https://login.weixin.qq.com/qrcode/QaUgZVng2g=="},"type":"scan"}) 21:48:33 INFO IoClient [2] https://login.weixin.qq.com/l/QaUgZVng2g== Online QR Code Image: https://wechaty.js.org/qrcode/https%3A%2F%2Flogin.weixin.qq.com%2Fl%2FQaUgZVng2g%3D%3D 21:48:33 VERB EventStreamManager grpcEmit(EVENT_TYPE_SCAN[22], {"qrcode":"https://login.weixin.qq.com/l/QaUgZVng2g==","status":2}) 21:48:34 VERB PuppetWeChatBridge onLoad() page.url=https://wx2.qq.com/?&lang=en 21:48:34 VERB PuppetWeChatBridge readyAngular() 21:48:34 VERB PuppetWeChatBridge inject() 21:48:34 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"heartbeat@browserbridge ding"}) 21:48:34 VERB PuppetWeChatBridge ding(ding() OK!) 21:48:34 VERB EventStreamManager grpcEmit(EVENT_TYPE_DONG[3], {"data":"ding() OK!"}) 21:48:34 VERB PuppetWeChatBridge clickSwitchAccount()

linuxxunil commented 3 years ago

请问大神们,这问题已经有解决方案了吗

xiaoming902 commented 3 years ago

请问大神们,这问题已经有解决方案了吗 买他们付费的token或者做个监控检查有没有掉线,然后再手动登录

MzhouNiuniu commented 3 years ago

有没有大神解决一下

zhihualipolestar commented 2 years ago

程序运行一段时间后会报这个错误:麻烦大神看看 10:09:31 WARN PuppetWeChatBridge proxyWechaty() noWechaty exception: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed. 10:09:31 ERR PuppetWeChatBridge logout() exception: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed. 10:09:31 ERR PuppetWeChat logout() exception: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed. 10:09:31 ERR we-bot on error: 10:10:35 ERR PuppetWeChatBridge start() exception: TimeoutError: Navigation timeout of 30000 ms exceeded

yita0101 commented 2 years ago

监听线程或者bot.on("error",fun)可以捕抓到这个异常,然后重启服务... process.on('uncaughtException',function(err){ console.error('未捕获的异常', err.message); })

L319515975 commented 2 years ago

image 本地服务,运行,报错,扫码后,显示登录失败是为什么啊

Justice996 commented 1 year ago

uncaughtException GError: 状态同步超过159.289s未响应,5s后尝试重启 这个怎么解决 大佬们