wechaty/wechaty-puppet-padchat

Padchat was logout-ed and stucked after the `PadchatRpc initWebSocket()`

huan opened this issue · 3 comments

huan commented

We lost the control to the padchat puppet after PadchatRpc initWebSocket()

Message#Url[🗣Contact<王彦博>@👥Room<私企企业家联盟会>]
Message discarded because it does not match ding/ping/bing/code
15:29:12 SILL PadchatRpc initHeartbeat() debounceQueue.subscribe(ws.on(message))
15:29:12 SILL PadchatRpc rpcCall(WXHeartBeat, [])
15:29:12 SILL PadchatRpc pre login rpcCall(WXHeartBeat, [])
15:29:17 SILL PadchatRpc initWebSocket() ws.on(message): {"apiName":"WXHeartBeat","data":"%7B%22status%22%3A0%2C%22message%22%3A%22ok%22%7D","msgId":"-900719
15:29:17 SILL PadchatRpc initHeartbeat() throttleQueue.subscribe(ws.on(message))
15:29:17 SILL PuppetPadchat startWatchdog() padchatManager.on(heartbeat)
15:29:17 SILL Wechaty memoryCheck() free: 4252 MB, require: 4 MB
15:29:17 SILL PadchatRpc WXHeartBeat result: {"status":0,"message":"ok"}
15:29:37 SILL PadchatRpc initHeartbeat() debounceQueue.subscribe(ws.on(message))
15:29:37 SILL PadchatRpc rpcCall(WXHeartBeat, [])
15:29:37 SILL PadchatRpc pre login rpcCall(WXHeartBeat, [])
15:29:55 SILL PadchatRpc initWebSocket() ws.on(message): {"apiName":"","data":"%5B%7B%22continue%22%3A0%2C%22msg_type%22%3A32768%2C%22status%22%3A1%2C%22uin%
15:29:55 SILL PadchatRpc onSocketTencent() discard empty message msg_id payoad: {"continue":0,"msg_type":32768,"status":1,"uin":1211516682}
15:29:55 SILL PadchatRpc initHeartbeat() throttleQueue.subscribe(ws.on(message))
15:29:55 SILL PuppetPadchat startWatchdog() padchatManager.on(heartbeat)
15:29:55 SILL Wechaty memoryCheck() free: 4250 MB, require: 4 MB
15:29:55 SILL PadchatRpc initWebSocket() ws.on(pong)
15:29:55 SILL PadchatRpc initWebSocket() ws.on(pong)
15:30:15 SILL PadchatRpc initHeartbeat() debounceQueue.subscribe(pong: #2596 from debounceQueue)
15:30:15 SILL PadchatRpc rpcCall(WXHeartBeat, [])
15:30:15 SILL PadchatRpc pre login rpcCall(WXHeartBeat, [])
15:33:55 SILL Puppet constructor() watchdog.on(reset) reason: {"data":"ws.on(message)","timeout":240000}
15:33:55 SILL Puppet constructor() this.on(reset) reason: {"data":"ws.on(message)","timeout":240000}
15:33:55 SILL Puppet constructor() resetThrottleQueue.subscribe() reason: {"data":"ws.on(message)","timeout":240000}
15:33:55 VERB Puppet reset({"data":"ws.on(message)","timeout":240000})
15:33:55 SILL StateSwitch <PuppetPadchat> off() is false
15:33:55 VERB PuppetPadchat stop()
15:33:55 SILL StateSwitch <PuppetPadchat> off() is false
15:33:55 SILL StateSwitch <PuppetPadchat> off() is false
15:33:55 VERB StateSwitch <PuppetPadchat> off(pending) <- (false)
15:33:55 VERB PuppetPadchat logout()
15:33:55 SILL Contact ready() @ Puppet#0<PuppetPadchat>(ding-dong-bot)/PuppetPadchat#0
15:33:55 SILL Contact ready() isReady() true
15:33:55 VERB PuppetPadchatManager logout()
15:33:55 VERB PuppetPadchatManager releaseCache()
15:33:55 SILL PuppetPadchatManager releaseCache() closing caches ...
15:33:55 VERB ContactSelf name()
李卓桓 logouted
15:33:55 SILL PuppetPadchatManager releaseCache() cache closed.
15:33:55 VERB PuppetPadchatManager startCheckScan()
15:33:55 SILL PuppetPadchatManager startCheckScan() checkScanInternalLoop()
15:33:55 SILL PadchatRpc rpcCall(WXCheckQRCode, [])
15:33:55 SILL PadchatRpc pre login rpcCall(WXCheckQRCode, [])
15:33:55 SILL PuppetPadchatManager startCheckScan() checkScanInternalLoop() set
15:33:55 VERB PuppetPadchatManager stop()
15:33:55 WARN PuppetPadchatManager stop() subscript not exist
15:33:55 VERB PuppetPadchatManager stopCheckScan()
15:33:55 VERB PadchatRpc stop()
15:33:55 VERB PadchatRpc stopQueues()
15:33:55 VERB PuppetPadchatManager releaseCache()
15:33:55 VERB PuppetPadchatManager releaseCache() cache not exist.
15:33:55 SILL StateSwitch <PuppetPadchat> off() is pending
15:33:55 VERB StateSwitch <PuppetPadchat> off(true) <- (pending)
15:33:55 VERB PuppetPadchat start() with ding-dong-bot
15:33:55 SILL StateSwitch <PuppetPadchat> on() is false
15:33:55 SILL StateSwitch <PuppetPadchat> on() is false
15:33:55 VERB StateSwitch <PuppetPadchat> on(pending) <- (false)
15:33:55 VERB PadchatRpc constructor(ws://padchat.botorange.com/wx, puppet_padchat_xxxxxxxxxxxxxxx)
15:33:55 VERB PuppetPadchatManager constructor()
15:33:55 VERB PuppetPadchat startManager()
15:33:55 SILL StateSwitch <PuppetPadchat> off() is false
15:33:55 VERB PuppetPadchatManager start()
15:33:55 VERB PadchatRpc start()
15:33:55 VERB PadchatRpc initWebSocket()
16:11:19 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
17:11:19 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
18:11:20 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
19:11:20 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
20:11:20 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
21:11:20 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
22:11:20 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
23:11:20 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
00:11:20 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...

Please move to wechaty-puppet-padpro

padchat always stuck after running for a period for not known reason, padpro now has a more stable version.

huan commented

Does that mean that we should deprecated the padchat and only keep promoting the padpro because we are not going to maintain the padchat version?

Yes, you are right, we should do that.