Skip to content

qr code not ready or already scanned #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
carefulcomputer opened this issue Apr 12, 2025 · 1 comment
Open

qr code not ready or already scanned #333

carefulcomputer opened this issue Apr 12, 2025 · 1 comment

Comments

@carefulcomputer
Copy link

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 ?

@avoylenko
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants