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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

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 in 41991fa Jun 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment