wechaty / wechaty-puppet-padpro

Apache License 2.0
238 stars 64 forks source link

PadproManager Connection has problem, reset self to recover the connection. #196

Open huan opened 5 years ago

huan commented 5 years ago

There must have some problem with the recover code for the connection lost.

My bot had been logout-ed and never come back again.

Related to: https://github.com/Chatie/wechaty/issues/1810

18:07:37 VERB Room ready()
18:07:37 SILL Contact ready() @ Puppet#0<PuppetPadpro>(ding-dong-bot)/PuppetPadpro#0
18:07:37 SILL Contact ready() isReady() true
18:07:37 SILL Contact ready() @ Puppet#0<PuppetPadpro>(ding-dong-bot)/PuppetPadpro#0
18:07:37 SILL Contact ready() isReady() true
Message#Text[🗣Contact<尝尝鲜>@👥Room<资源整合(一群)>]     ◤每日更新🈲::🈲 天天晶采◥
🐉 ::::缓冲几秒🔺自动波放::::🐉
★出现白白🈲::♛:🈲 反复点击★
—————全民
Message discarded because it does not match ding/ping/bing/code
18:07:55 VERB Message static load(1094494695)
18:07:55 SILL Accessory #79209<Message> constructor()
18:07:55 VERB Message constructor(1094494695) for class Message
18:07:55 VERB Message ready()
18:07:55 VERB Puppet messagePayload(1094494695)
18:07:55 SILL Puppet messagePayloadCache(1094494695) cache MISS
18:07:55 SILL Puppet messagePayload(1094494695) cache SET
18:07:55 SILL Contact ready() @ Puppet#0<PuppetPadpro>(ding-dong-bot)/PuppetPadpro#0
18:07:55 SILL Contact ready() isReady() true
18:07:55 SILL Contact ready() @ Puppet#0<PuppetPadpro>(ding-dong-bot)/PuppetPadpro#0
18:07:55 SILL Contact ready() isReady() true
Message#Text[🗣Contact<Huan (李卓桓)>]   544424
Message discarded because it does not match ding/ping/bing/code
18:08:03 INFO PadproManager Connection has problem, reset self to recover the connection.
18:08:03 SILL Puppet constructor() this.on(reset) reason: undefined
18:08:03 SILL Puppet constructor() resetThrottleQueue.subscribe() reason: undefined
18:08:03 VERB Puppet reset(undefined)
18:08:03 SILL StateSwitch <PuppetPadpro> off() is false
18:08:03 SILL StateSwitch <PuppetPadpro> off() is false
18:08:03 SILL StateSwitch <PuppetPadpro> off() is false
18:08:03 VERB StateSwitch <PuppetPadpro> off(pending) <- (false)
18:08:03 SILL Contact ready() @ Puppet#0<PuppetPadpro>(ding-dong-bot)/PuppetPadpro#0
18:08:03 SILL Contact ready() isReady() true
18:08:03 VERB ContactSelf name()
李卓桓 logouted
18:08:03 INFO CacheManager release()
18:11:37 SILL Puppet constructor() watchdog.on(reset) reason: {"timeout":240000}
18:11:37 SILL Puppet constructor() this.on(reset) reason: {"timeout":240000}
18:11:37 SILL Puppet constructor() resetThrottleQueue.subscribe() reason: {"timeout":240000}
18:11:37 VERB Puppet reset({"timeout":240000})
18:11:37 SILL StateSwitch <PuppetPadpro> off() is pending
18:11:37 VERB Puppet reset({"timeout":240000}) state is off(), do nothing.
18:23:02 INFO WechatGateway initLongSocket() connection to wechat long host server: long.weixin.qq.com ended.
18:23:02 INFO WechatGateway initLongSocket() connection to wechat long host server: long.weixin.qq.com closed.
18:28:08 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
19:28:08 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
20:28:08 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...