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

PuppetPadchat: friend value of ContactPayload is undefined #1359

Closed
lijiarui opened this issue Jun 17, 2018 · 1 comment
Closed

PuppetPadchat: friend value of ContactPayload is undefined #1359

lijiarui opened this issue Jun 17, 2018 · 1 comment
Assignees
Labels

Comments

@lijiarui
Copy link
Member

lijiarui commented Jun 17, 2018

Wechaty version:

612ae3d

Issue description:

No matter contact is strange or not, contact.stranger() return null

Code

const contact = bot.Contact.load('qq512436430')
console.log('============lijiarui===============')
console.log(contact.stranger())

Log

============lijiarui===============
01:28:29 WARN Contact stranger() DEPRECATED. use friend() instead.
01:28:29 SILL Puppet contactPayload(qq512436430) cache MISS
null
@huan
Copy link
Member

huan commented Jun 19, 2018

null means UNKNOWN, caused by when the contactPayload.friend is undefined.

Please check your PuppetPadchat.contactRawPayloadParser() for reasons.

@lijiarui lijiarui self-assigned this Jun 20, 2018
huan added a commit that referenced this issue Jun 25, 2018
@huan huan changed the title contact.stranger() cannot work as expect PuppetPadchat: friend value of ContactPayload is undefined Jun 27, 2018
@huan huan added the bug label Jun 27, 2018
@huan huan closed this as completed in 41991fa Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants