WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
3.6k stars 1.21k forks source link

[BUG] Inconsistent Data Retrieval with "contacts.upsert" Event #268

Open onurguven opened 1 year ago

onurguven commented 1 year ago

Describe the bug I want to export all the contacts from my contacts list, and I am using the "contacts.upsert" event for this purpose.

However, I have encountered an issue where the event behaves inconsistently. At times, it correctly transmits all contact data without any problems, while on other occasions, it only sends partial data, leaving some contacts missing.

Upon checking the logs, I noticed that when contacts are missing, the following log message appears: {"level":20,"time":"2023-07-21T16:17:20.050Z","pid":113345,"hostname":"fedora","contactId":"9053**sensored@s.whatsapp.net","msg":"absorbed contact upsert in contact set"}

Thank you!

To Reproduce Steps to reproduce the behavior:

  1. Created a new connection
  2. Logged out & used new credentials to log back in
  3. Started listening to contacts.upsert event.

Environment:

gamafolk commented 4 months ago

I'm having the same problem, guys. Any news?