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

Error: contact = undefined not exist [object Promise] #16

Open
huan opened this issue Aug 30, 2018 · 0 comments
Open

Error: contact = undefined not exist [object Promise] #16

huan opened this issue Aug 30, 2018 · 0 comments

Comments

@huan
Copy link
Collaborator

huan commented Aug 30, 2018

Message#Text(👥Room<ChatOps - Chatie.io>🗣Contact<李卓桓>)<ding>
23:46:26 VERB Message say(dong: Puppet#0<PuppetIoscat>(ding-dong-bot))
23:46:26 VERB PuppetIoscat messageSend([object Object], dong: Puppet#0<PuppetIoscat>(ding-dong-bot))
23:46:26 VERB PuppetIoscat sendMessage([object Object], dong: Puppet#0<PuppetIoscat>(ding-dong-bot))
REPLY: dong
23:46:26 SILL PuppetIoscat startWatchdog() IosCatEvent.on(heartbeat)
23:46:26 SILL Wechaty memoryCheck() free: 4150 MB, require: 4 MB
23:46:26 SILL checkOnline() feed
23:46:26 VERB Message static load(cjlgqs34f001uexejrgy3oe5a)
23:46:26 SILL Accessory #32<Message> constructor()
23:46:26 VERB Message constructor(cjlgqs34f001uexejrgy3oe5a) for class Message
23:46:26 VERB Message ready()
23:46:26 VERB Puppet messagePayload(cjlgqs34f001uexejrgy3oe5a)
23:46:26 SILL Puppet messagePayloadCache(cjlgqs34f001uexejrgy3oe5a) cache MISS
23:46:26 VERB PuppetIoscat messageRawPayload(cjlgqs34f001uexejrgy3oe5a)
23:46:26 VERB PuppetIoscat messagePayload({
  "payload": {
    "id": "",
    "profileContactID": "",
    "profilePlatformUid": "wxid_5zj4i5htp9ih22",
    "profileCustomID": "huan-us",
    "contactID": "",
    "platformUid": "wxid_a8d806dzznm822",
    "customID": "zixia008",
    "nickname": "ChatOps - Chatie.io",
    "gid": "",
    "platformGid": "3453262102@chatroom",
    "direction": 1,
    "deleteStatus": 2,
    "messageType": 1,
    "sessionType": 2,
    "sessionID": "",
    "platformMsgType": 1,
    "content": "dong: Puppet#0<PuppetPadchat>(ding-dong-bot)/PuppetPadchat#0",
    "revoke": 2,
    "ctime": 0,
    "sendTime": 1535643983,
    "snapshot": "dong: Puppet#0<PuppetPadchat>(ding-dong-bot)/PuppetPadchat#0",
    "serviceID": 13,
    "extra": "",
    "tags": "",
    "platformMsgID": "124",
    "deviceID": "20de64e1f656c3ce0bf0233af38c4e1742117cad",
    "objectContent": "",
    "textContent": ""
  },
  "type": "ON_IM_MESSAGE_RECEIVED",
  "id": "cjlgqs34f001uexejrgy3oe5a"
})
23:46:26 SILL Puppet messagePayload(cjlgqs34f001uexejrgy3oe5a) cache SET
23:46:26 SILL Contact ready() @ Puppet#0<PuppetIoscat>(ding-dong-bot)
23:46:26 SILL Puppet contactPayload(wxid_a8d806dzznm822) cache MISS
23:46:26 VERB PuppetIoscat contactRawPayload(wxid_a8d806dzznm822)
23:46:26 ERR contactRawPayload length = 9
23:46:26 SILL PuppetIoscat contactPayload(wxid_a8d806dzznm822) exception: contact = undefined not exist
23:46:26 SILL PuppetIoscat contactPayload(try load from room member data source) get failed for wxid_a8d806dzznm822
23:46:26 VERB PuppetIoscat contactRawPayload(wxid_a8d806dzznm822)
23:46:27 ERR contactRawPayload length = 9
23:46:27 VERB Contact ready() this.puppet.contactPayload(Contact) exception: contact = undefined not exist
23:46:27 ERR Config ###########################
23:46:27 ERR Config unhandledRejection: Error: contact = undefined not exist [object Promise]
23:46:27 ERR Config ###########################
23:46:27 ERR Config process.on(unhandledRejection) promise.catch(contact = undefined not exist)
Config Error: contact = undefined not exist
    at IosCatManager.<anonymous> (/home/ubuntu/workspace/node_modules/wechaty-puppet-ioscat/src/ioscat-manager.ts:410:13)
    at Generator.next (<anonymous>)
    at fulfilled (/home/ubuntu/workspace/node_modules/wechaty-puppet-ioscat/dist/src/ioscat-manager.js:4:58)
(node:264921) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 16)
23:46:33 VERB Message static load(cjlgqs8pg001vexejz75ix87x)
23:46:33 SILL Accessory #33<Message> constructor()
23:46:33 VERB Message constructor(cjlgqs8pg001vexejz75ix87x) for class Message
23:46:33 VERB Message ready()
23:46:33 VERB Puppet messagePayload(cjlgqs8pg001vexejz75ix87x)
23:46:33 SILL Puppet messagePayloadCache(cjlgqs8pg001vexejz75ix87x) cache MISS
23:46:33 VERB PuppetIoscat messageRawPayload(cjlgqs8pg001vexejz75ix87x)
23:46:33 VERB PuppetIoscat messagePayload({
  "payload": {
    "id": "",
    "profileContactID": "",
    "profilePlatformUid": "wxid_5zj4i5htp9ih22",
    "profileCustomID": "huan-us",
    "contactID": "",
    "platformUid": "",
    "customID": "",
    "nickname": "ChatOps - Chatie.io",
    "gid": "",
    "platformGid": "3453262102@chatroom",
    "direction": 2,
    "deleteStatus": 2,
    "messageType": 1,
    "sessionType": 2,
    "sessionID": "",
    "platformMsgType": 1,
    "content": "dong: Puppet#0<PuppetIoscat>(ding-dong-bot)",
    "revoke": 2,
    "ctime": 0,
    "sendTime": 1535643992,
    "snapshot": "dong: Puppet#0<PuppetIoscat>(ding-dong-bot)",
    "serviceID": 13,
    "extra": "",
    "tags": "",
    "platformMsgID": "125",
    "deviceID": "20de64e1f656c3ce0bf0233af38c4e1742117cad",
    "objectContent": "",
    "textContent": ""
  },
  "type": "ON_IM_MESSAGE_RECEIVED",
  "id": "cjlgqs8pg001vexejz75ix87x"
})
23:46:33 SILL Puppet messagePayload(cjlgqs8pg001vexejz75ix87x) cache SET
23:46:33 SILL Contact ready() @ Puppet#0<PuppetIoscat>(ding-dong-bot)
23:46:33 SILL Contact ready() isReady() true
23:46:33 VERB Room ready()
Message#Text(👥Room<ChatOps - Chatie.io>🗣Contact<Huan LI>)<dong: Puppet#0<PuppetIoscat>(ding-dong-bot)>
Message discarded because it does not match ding/ping/bing/code
23:46:52 SILL PuppetIoscat startWatchdog() IosCatEvent.on(heartbeat)
23:46:52 SILL Wechaty memoryCheck() free: 4156 MB, require: 4 MB
23:46:52 SILL checkOnline() feed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant