wechaty / wechaty-puppet-padplus

DEPRECATED: One puppet based on iPad protocal for Wechaty
https://wechaty.js.org/docs/puppet-services/
315 stars 65 forks source link

In production: Contact.weixin() sometimes gives null where Contact comes from msg.from() in onMessage for some newly added people #277

Closed archywillhe closed 4 years ago

archywillhe commented 4 years ago

1. Versions

2. Describe the bug

.weixin() sometimes return null. Maybe cuz .payload.weixin is null or payload not loaded at all. Super werid.

Still trying to replicate this bug.

(Maybe it's cuz when adding the person there was a network issue and something wasn't initalised properly? )

su-chang commented 4 years ago

Could you please make sure contact.id is look like wxid_xxxxx when the weixin() return null.

BTW, it better to show more detail info in this issue.

archywillhe commented 4 years ago

@su-chang thanks for attending this issue! Yeah I'm still testing to see what cases it will return null. Will get back with more info in a bit! (also am just curious if anyone else has encountered this before)

archywillhe commented 4 years ago

haven't been able to replicate similiar issue; closing.

su-chang commented 4 years ago

Thank you for your response.