whatsapp-api
whatsapp-api copied to clipboard
qr code not ready or already scanned
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 ?
Can you share the service logs here? It seems that the session is not being terminated correctly.