linyimin0812 / wechaty-puppet-ioscat

Puppet Ios Cat for Wechaty
https://www.npmjs.com/package/wechaty-puppet-ioscat
Apache License 2.0
37 stars 11 forks source link

No reponse after start, do nothing until ^C after hours. #18

Open huan opened 6 years ago

huan commented 6 years ago
Please wait... I'm trying to login in...

00:38:42 VERB Wechaty initPuppet() 
00:38:42 VERB MemoryCard multiplex(puppet)
00:38:42 VERB MemoryCard static multiplex(MemoryCard<ding-dong-bot>, puppet)
00:38:42 VERB MemoryCard constructor({"name":"ding-dong-bot","multiplex":{"name":"puppet","parent":{"options":{"name":"ding-dong-bot"},"name":"ding-dong-bot","payload":{"\rpuppet\nWECHATY_PUPPET_PADCHAT":{"device":{"wxid_a8d806dzznm822":{"data":"YnBsaXN0MDDUAQIDBAUGCQpYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoKIHCFUkbnVsbF8QIDJlMWUwZDI5NjZkOGZhNzdkNjQ0YjcwYmFhYTA4NzVkXxAPTlNLZXllZEFyY2hpdmVy0QsMVHJvb3SAAQgRGiMtMjc6QGN1eH0AAAAAAAABAQAAAAAAAAANAAAAAAAAAAAAAAAAAAAAfw==","token":"eO46+NE7GFdMmEWPH1ciKp+WvjuMUmg7ULlO7zvoRrV35QJw6ibbq+RhlNgLwVH3Ca0q0GV4/SlxF9PQOsBUkqCl60yIojDS0zW0u4cb1hqTi1IFxIzvpIvEY9u9XLFPE3+Tra0EzLWcJ5OOZUqfSn+GiZVF2HQoQgE/oObl3TvTiYZPvSOGRILUriBBrbPnHJ45fyncDxgp+FFTQ+8EB8rRA8Fd4zjj+i7YcGMkGXK5uFgK8qtKjoUD+oZC1bcbxnCIvo3QxnVIm5rbGcziZnT6ou+j23tzqyg6beyEbbTO1caT1NrqDUGoWENtuxyT872K9B4rBixWhKIkTAJxo+npKPPS6o5m0twwjHCHFfBz15in7Q797eFXFx1Oxskwy7gwF1zWy9IoKOGFi32AE2NbdMNEG2lsMd7a0IeisSG0ji/sVFnZENtjhAT5sWkJ+5ndimPkGu++1UnAH35DsedIuFkai6rSb0aA6rdRlYPfoMnBGg9aN8RAQBucPtzgCec8eX2Xck4XFyAnN5CU1AQldEjz5kRaOKZll4I6XOZdBmxYiyqy1rtC5uF13MBkh+17UFpeyHFLYkQJ8VIw1D4UDKPOH5PIo60859E8jykDzjEEUkktaR7PFTQWz1DH3Ixua9AxxmUvGiL2wvCXCQ=="}},"currentUserId":"wxid_a8d806dzznm822"}},"multiplexNameList":[],"storage":{"name":"ding-dong-bot","options":{"type":"file"},"absFileName":"/home/ubuntu/workspace/ding-dong-bot.memory-card.json"}}}})
00:38:42 VERB PuppetManager resolve({wechaty: Wechaty#cjlgsnays0000gfejuiyaax8a<>(ding-dong-bot), puppet: wechaty-puppet-ioscat, puppetOptions: undefined})
00:38:42 VERB PuppetManager resolveName(wechaty-puppet-ioscat)
00:38:42 VERB PuppetManager checkModule(wechaty-puppet-ioscat)
00:38:42 SILL PuppetManager checkModule() wechaty-puppet-ioscat installed version 0.5.19 satisfied range ^0.5.19
00:38:42 VERB Puppet constructor({}) #0
00:38:42 VERB StateSwitch constructor(name=PuppetIoscat)
00:38:42 VERB MemoryCard constructor(undefined)
00:38:42 VERB MemoryCard getStorage() for storage type: N/A
00:38:42 VERB MemoryCard load() from storage: N/A
00:38:42 VERB MemoryCard load() no storage
00:38:42 VERB Puppet constructor() watchdog timeout set to 60 seconds
00:38:42 VERB HotImport callerResolve(., /home/ubuntu/workspace/node_modules/wechaty-puppet/dist/src/puppet.js)
00:38:42 SILL HotImport callerResolve() callsites() file=/home/ubuntu/workspace/node_modules/hot-import/dist/src/hot-import.js, type=Object
00:38:42 SILL HotImport callerResolve() callsites() file=/home/ubuntu/workspace/node_modules/wechaty-puppet/dist/src/puppet.js, type=null
00:38:42 SILL HotImport callerResolve() callsites() file=/home/ubuntu/workspace/node_modules/wechaty-puppet-ioscat/dist/src/puppet-ioscat.js, type=null
00:38:42 SILL HotImport callerResolve() callerFile=/home/ubuntu/workspace/node_modules/wechaty-puppet-ioscat/dist/src/puppet-ioscat.js
00:38:42 VERB Puppet constructor() childClassPath=/home/ubuntu/workspace/node_modules/wechaty-puppet-ioscat/dist/src
00:38:42 VERB Puppet constructor() memory.load() done
00:38:42 VERB Puppet setMemory()
00:38:42 VERB Wechaty initPuppetEventBridge(Puppet#0<PuppetIoscat>(ding-dong-bot))
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(friendship) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(login) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(logout) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(message) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(room-invite) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(room-join) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(room-leave) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(room-topic) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(scan) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(dong) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(error) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(ready) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(reset) registered
00:38:42 VERB Wechaty initPuppetEventBridge() puppet.on(watchdog) registered
00:38:42 VERB Wechaty initAccessory(Puppet#0<PuppetIoscat>(ding-dong-bot))
00:38:42 SILL Accessory <Contact> static set wechaty = "Wechaty#cjlgsnays0000gfejuiyaax8a<>(ding-dong-bot)"
00:38:42 SILL Accessory <ContactSelf> static set wechaty = "Wechaty#cjlgsnays0000gfejuiyaax8a<>(ding-dong-bot)"
00:38:42 SILL Accessory <Friendship> static set wechaty = "Wechaty#cjlgsnays0000gfejuiyaax8a<>(ding-dong-bot)"
00:38:42 SILL Accessory <Message> static set wechaty = "Wechaty#cjlgsnays0000gfejuiyaax8a<>(ding-dong-bot)"
00:38:42 SILL Accessory <Room> static set wechaty = "Wechaty#cjlgsnays0000gfejuiyaax8a<>(ding-dong-bot)"
00:38:42 SILL Accessory <RoomInvitation> static set wechaty = "Wechaty#cjlgsnays0000gfejuiyaax8a<>(ding-dong-bot)"
00:38:42 SILL Accessory <Contact> static set puppet = "Puppet#0<PuppetIoscat>(ding-dong-bot)"
00:38:42 SILL Accessory <ContactSelf> static set puppet = "Puppet#0<PuppetIoscat>(ding-dong-bot)"
00:38:42 SILL Accessory <Friendship> static set puppet = "Puppet#0<PuppetIoscat>(ding-dong-bot)"
00:38:42 SILL Accessory <Message> static set puppet = "Puppet#0<PuppetIoscat>(ding-dong-bot)"
00:38:42 SILL Accessory <Room> static set puppet = "Puppet#0<PuppetIoscat>(ding-dong-bot)"
00:38:42 SILL Accessory <RoomInvitation> static set puppet = "Puppet#0<PuppetIoscat>(ding-dong-bot)"
00:38:42 SILL Accessory <Wechaty> set puppet = "Puppet#0<PuppetIoscat>(ding-dong-bot)"
00:38:42 VERB PuppetIoscat start()
00:38:42 SILL StateSwitch <PuppetIoscat> on() is false
00:38:42 VERB StateSwitch <PuppetIoscat> on(pending) <- (false)
00:38:42 SILL topic:  im.topic.13.wxid_5zj4i5htp9ih22
00:38:42 SILL IMSink subscribe(im.topic.13.wxid_5zj4i5htp9ih22)
00:38:42 SILL IMSink getChannel()
00:38:42 SILL IMSink getConnection()
00:38:45 SILL StateSwitch <PuppetIoscat> on() is pending
00:38:45 VERB StateSwitch <PuppetIoscat> on(true) <- (pending)
00:38:45 VERB PuppetIoscat startWatchdog()
00:38:45 SILL IoscatMnager checkOnline()
00:38:45 VERB PuppetIoscat initCache(wxid_5zj4i5htp9ih22)
00:38:45 SILL PuppetIoscat initCache(wxid_5zj4i5htp9ih22)
00:38:45 VERB PuppetIosCatManager initCache() inited 9 Contacts, 367 RoomMembers, 8 Rooms, cachedir="/home/ubuntu/.wechaty/puppet-ioscat-cache/wxid_5zj4i5htp9ih22"
00:38:45 VERB Contact load(wxid_5zj4i5htp9ih22) init pool
00:38:45 SILL Accessory #1<ContactSelf> constructor()
00:38:45 SILL Contact constructor(wxid_5zj4i5htp9ih22)
00:38:45 SILL Contact ready() @ Puppet#0<PuppetIoscat>(ding-dong-bot)
00:38:45 SILL Puppet contactPayload(wxid_5zj4i5htp9ih22) cache MISS
00:38:45 VERB PuppetIoscat contactRawPayload(wxid_5zj4i5htp9ih22)
00:38:45 VERB PuppetIosCatManager syncContactsAndRooms()
00:38:45 SILL PuppetIosCatmanager syncContactAndRooms()
00:38:46 VERB PuppetIoscat rawPayload={"avatar":"http://wx.qlogo.cn/mmhead/P3UGRtJrgyEMkmOExtdq1xpGcic2z1b5wZuicFibfHNPnYttF9n9ZzE2Q/132","city":"San Francisco","country":"United States","ctime":1535633096,"customID":"huan-us","extra":"{\"FrontendControl\":{\"addToBlackList\":true,\"alertDuplicateContact\":true,\"autoAcceptGroupInvitation\":true,\"canClearMsg\":true,\"canLogout\":true,\"canOpenPaymentManage\":false,\"canRemoveRequestFriend\":true,\"canSendRedEnvelope\":false,\"canShareCard\":true,\"canTransferMoney\":false,\"canWithdraw\":true,\"closeSensitiveWord\":false,\"customLocation\":false,\"deleteFriend\":false,\"forbidReceiveRedEnvelope\":true,\"forbidReceiveTransferMoney\":true,\"showAccountQR\":true,\"showAccountView\":false,\"showAccountWxNo\":true,\"showContactWxNo\":false,\"uploadGroupMsg\":true},\"persistRoomMsg\":true}","gender":1,"id":"2300e6e969d2450fa28557c57c2383ae","nickname":"Huan LI","platformUid":"wxid_5zj4i5htp9ih22","serviceID":13,"signature":"angel invester, serial entrepreneur, machine learning Ph.D","state":"California","tags":[null]}
00:38:46 VERB PuppetIoscat contactRawPayloadParser()
00:38:46 SILL Puppet contactPayload(wxid_5zj4i5htp9ih22) cache SET
00:38:46 VERB ContactSelf name()
Huan LI login
00:38:46 VERB Wechaty say(Wechaty login)
00:38:46 VERB Puppet selfId()
00:38:46 VERB Contact say(Wechaty login)
00:38:46 VERB PuppetIoscat messageSend([object Object], Wechaty login)
00:38:46 VERB PuppetIoscat sendMessage([object Object], Wechaty login)
00:38:46 SILL PuppetIosCatManager syncRooms(), length 8
00:38:46 VERB PuppetIosCatManager roomMemberRawPayload(3453262102@chatroom)
00:38:46 VERB PuppetIosCatManager roomMemberRawPayload(5330379221@chatroom)
00:38:46 VERB PuppetIosCatManager roomMemberRawPayload(3612135636@chatroom)
00:38:46 VERB PuppetIosCatManager roomMemberRawPayload(6053138943@chatroom)
00:38:46 VERB PuppetIosCatManager roomMemberRawPayload(5729603967@chatroom)
00:38:46 VERB PuppetIosCatManager roomMemberRawPayload(5958138947@chatroom)
00:38:46 VERB PuppetIosCatManager roomMemberRawPayload(5907139882@chatroom)
00:38:46 VERB PuppetIosCatManager roomMemberRawPayload(8264954429@chatroom)
00:38:46 SILL PuppetIosCatManager syncContactsAndRooms() syncing Contact(9) & Room(8) ...
00:38:46 VERB PuppetIosCatManager syncContactsAndRooms() sync contact done!
00:38:46 VERB Wechaty on(heartbeat, function) registered
00:38:46 VERB Wechaty onFunction(heartbeat)
00:38:46 SILL StateSwitch <Wechaty> on() is pending
00:38:46 VERB StateSwitch <Wechaty> on(true) <- (pending)
00:39:45 SILL Puppet constructor() watchdog.on(reset) reason: {"data":"inited","type":"startWatchdog()","timeout":60000}
00:39:45 SILL Puppet constructor() this.on(reset) reason: {"data":"inited","type":"startWatchdog()","timeout":60000}
00:39:45 SILL Puppet constructor() resetThrottleQueue.subscribe() reason: {"data":"inited","type":"startWatchdog()","timeout":60000}
00:39:45 VERB Puppet reset({"data":"inited","type":"startWatchdog()","timeout":60000})
00:39:45 SILL StateSwitch <PuppetIoscat> off() is false
00:39:45 VERB PuppetIoscat stop()
00:39:45 SILL StateSwitch <PuppetIoscat> off() is false
00:39:45 SILL StateSwitch <PuppetIoscat> off() is false
00:39:45 VERB StateSwitch <PuppetIoscat> off(pending) <- (false)
00:39:46 VERB PuppetIoscat logout()
00:39:46 VERB PuppetIosCatManager releaseCache()
00:39:46 SILL PuppetIosCatManager releaseCache() closing caches ...
01:38:46 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
 02:38:46 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...

03:38:47 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
04:38:47 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
05:38:47 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
06:38:47 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
07:38:47 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
08:38:47 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...

^C
zixia:~/workspace (master) $ 
huan commented 6 years ago

Again:

04:43:35 SILL PuppetIoscat startWatchdog() IosCatEvent.on(heartbeat)
04:43:35 SILL Wechaty memoryCheck() free: 4344 MB, require: 4 MB
04:43:35 SILL checkOnline() feed
04:43:55 SILL PuppetIoscat startWatchdog() IosCatEvent.on(heartbeat)
04:43:55 SILL Wechaty memoryCheck() free: 4353 MB, require: 4 MB
04:43:55 SILL checkOnline() feed
04:44:15 SILL PuppetIoscat startWatchdog() IosCatEvent.on(heartbeat)
04:44:15 SILL Wechaty memoryCheck() free: 4345 MB, require: 4 MB
04:44:15 SILL checkOnline() feed
04:44:35 SILL PuppetIoscat startWatchdog() IosCatEvent.on(heartbeat)
04:44:35 SILL Wechaty memoryCheck() free: 4327 MB, require: 4 MB
04:44:35 SILL checkOnline() feed
04:44:55 SILL PuppetIoscat startWatchdog() IosCatEvent.on(heartbeat)
04:44:55 SILL Wechaty memoryCheck() free: 4330 MB, require: 4 MB
04:44:55 SILL checkOnline() feed
04:45:15 SILL PuppetIoscat startWatchdog() IosCatEvent.on(heartbeat)
04:45:15 SILL Wechaty memoryCheck() free: 4328 MB, require: 4 MB
04:45:15 SILL checkOnline() feed
Bot error: Error: Error: Cant receive message event
    at PuppetIoscat.puppet.on.error (/home/ubuntu/workspace/src/wechaty.ts:600:32)
    at PuppetIoscat.emit (events.js:182:13)
    at PuppetIoscat.EventEmitter.emit (domain.js:442:20)
    at PuppetIoscat.emit (/home/ubuntu/workspace/node_modules/wechaty-puppet/src/puppet.ts:298:18)
    at Event.ioscat_event_1.IosCatEvent.on (/home/ubuntu/workspace/node_modules/wechaty-puppet-ioscat/src/puppet-ioscat.ts:243:12)
    at Event.emit (events.js:182:13)
    at EventEmitter.emit (domain.js:442:20)
    at Event.emit (/home/ubuntu/workspace/node_modules/wechaty-puppet-ioscat/src/pure-function-helper/ioscat-event.ts:17:18)
    at Watchdog.dog.on (/home/ubuntu/workspace/node_modules/wechaty-puppet-ioscat/src/ioscat-manager.ts:524:19)
    at Watchdog.emit (events.js:182:13)
    at Watchdog.EventEmitter.emit (domain.js:442:20)
    at Timeout._onTimeout (/home/ubuntu/workspace/node_modules/watchdog/dist/watchdog.js:97:19)
    at ontimeout (timers.js:427:11)
    at tryOnTimeout (timers.js:289:5)
    at unrefdHandle (timers.js:511:7)
    at Timer.processTimers (timers.js:211:12)
04:46:15 SILL Puppet constructor() watchdog.on(reset) reason: {"data":"work","timeout":60000}
04:46:15 SILL Puppet constructor() this.on(reset) reason: {"data":"work","timeout":60000}
04:46:15 SILL Puppet constructor() resetThrottleQueue.subscribe() reason: {"data":"work","timeout":60000}
04:46:15 VERB Puppet reset({"data":"work","timeout":60000})
04:46:15 SILL StateSwitch <PuppetIoscat> off() is false
04:46:15 VERB PuppetIoscat stop()
04:46:15 SILL StateSwitch <PuppetIoscat> off() is false
04:46:15 SILL StateSwitch <PuppetIoscat> off() is false
04:46:15 VERB StateSwitch <PuppetIoscat> off(pending) <- (false)
04:46:17 VERB PuppetIoscat logout()
04:46:17 VERB PuppetIosCatManager releaseCache()
04:46:17 SILL PuppetIosCatManager releaseCache() closing caches ...
05:34:44 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
06:34:44 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
07:34:44 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...
08:34:44 SILL Wechaty start() setInterval() this timer is to keep Wechaty running...

^C
zixia:~/workspace (master) $ date
Sat Sep  1 09:23:28 CST 2018