whatsapp-api icon indicating copy to clipboard operation
whatsapp-api copied to clipboard

qr code not ready or already scanned

Open carefulcomputer opened this issue 9 months ago • 1 comments

When whatsapp loses the registration I am doing following operations in order

${apiUrl}/terminate/${sessionId}; // terminate current session ${apiUrl}/restart/${sessionId}; // restart the session ${apiUrl}/qr/${sessionId} // get QR code

However almost 99% of time I get following response

"qr code not ready or already scanned"

I really don't know how to fix it. I even gave 10 second gap and try the URL 5 times but I still get this error. What is the right order of apis to call to get the QR code reliably ?

carefulcomputer avatar Apr 12 '25 00:04 carefulcomputer

Can you share the service logs here? It seems that the session is not being terminated correctly.

avoylenko avatar Apr 15 '25 11:04 avoylenko