tulir / whatsmeow

Go library for the WhatsApp web multidevice API
https://go.mau.fi/whatsmeow
Mozilla Public License 2.0
2.26k stars 422 forks source link

Connected, but registering device +... ⏳ Waiting for code...XXXX-XXXX #589

Closed alanmugiwara closed 5 months ago

alanmugiwara commented 5 months ago

I've been getting this message, API never send the code. I remove 2FA but nothing changes.

Initializing... Cleaning cache... Cache cleaned! "⏳ Connected, but registering device +5571993277032... ⏳ Waiting for code...0000-0000 ❌ Disconnected from WhatsApp Servers! "⏳ Connected, but registering device +0000... ⏳ Waiting for code...0000-0000

tulir commented 5 months ago

whatsmeow doesn't print any messages like that

alanmugiwara commented 5 months ago

This is part of a code the uses whatsmeow to link a bot write in Go to whatsapp. Seems like an API connection problem. I changed token method for a Qr-code method and works fine.

SoursopID commented 5 months ago

Are change the User agent for pairing ?

https://github.com/tulir/whatsmeow/blob/main/mdtest%2Fmain.go#L191