[WEBJS] -
Describe the bug
After scanning the QR Code in the WAHA Web interface, the WhatsApp Web screen loads correctly, but the session status in the API and dashboard remains stuck in SCAN_QR_CODE. It never transitions to WORKING, even though authentication succeeds.
Version { "version": "PLEASE_FILL_WITH_GET_/api/version_RESULT", "engine": "WEBJS", "tier": "WAHA" }
Steps
To Reproduce Steps to reproduce the behavior:
Start a new session via POST /api/sessions with engine WEBJS.
Call POST /api/sessions/{name}/start.
Scan the QR Code from the WAHA Web interface.
WhatsApp Web screen loads, messages appear, but API still reports session as SCAN_QR_CODE.
Expected behavior
After scanning the QR Code and authenticating, the session status should change to WORKING (or equivalent connected state) so it can be used with the API.
Requests - Responses
Example:
Create session
curl -X POST http://localhost:3000/api/sessions
-H "Content-Type: application/json"
-d '{"name":"teste_sessao21","engine":"WEBJS"}'
Start session
curl -X POST http://localhost:3000/api/sessions/teste_sessao21/start
-H "Content-Type: application/json"
-d '{}'
Get session status
curl http://localhost:3000/api/sessions/teste_sessao21
Response (stuck in SCAN_QR_CODE):
[{ "name":"teste_sessao21", "status":"SCAN_QR_CODE", "config":{}, "me":null, "assignedWorker":"" }]
Docker Logs
Relevant log snippets:
INFO (WhatsappSession/42): session:teste_sessao21 - Session has been authenticated! INFO (WhatsappSession/42): session:teste_sessao21 - Using cache type: 'none' ... Still, API keeps returning "SCAN_QR_CODE"
Screenshots
WAHA dashboard shows session in SCAN_QR_CODE
WhatsApp Web screen already loaded and functional
Additional context
Previously, WAHA worked without needing any volume for session persistence.
Now, session seems authenticated but status is never updated.
o docker-compose:
hguseruserxxxx@srxxxx:~/php-apache-rmq-api-v1/var/www/html_20052025/html$ cat docker-compose.yml services: whatsapp-api: image: xxxxxxxxxx/app-automateease:waha-plus-latest container_name: container-whatsapp-http-api ports: - "3000:3000" environment: - TZ=America/Sao_Paulo #- WAHA_API_KEY=${API_KEY} - API_KEY=${API_KEY} - WAHA_DASHBOARD_USERNAME=${WAHA_DASHBOARD_USERNAME} - WAHA_DASHBOARD_PASSWORD=${WAHA_DASHBOARD_PASSWORD} - WHATSAPP_SWAGGER_USERNAME=${WHATSAPP_SWAGGER_USERNAME} - WHATSAPP_SWAGGER_PASSWORD=${WHATSAPP_SWAGGER_PASSWORD} volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - ./waha-data:/app/data shm_size: '2gb' networks: - mynetwork hostname: whatsapp-api depends_on: - elasticsearch
Me too
[05:45:50.795] INFO (42): request errored {"reqId":1480,"req":{"id":1480,"method":"GET","url":"/api/farma/auth/qr?format=image","query":{"format":"image"},"params":{"path":["api","farma","auth","qr"]}},"res":{"statusCode":422},"responseTime":10013} err: { "type": "UnprocessableEntityException", "message": "Unprocessable Entity Exception", "stack": UnprocessableEntityException: Unprocessable Entity Exception at SessionManagerPlus.waitUntilStatus (/app/dist/core/abc/manager.abc.js:113:19) at async resolveParamValue (/app/node_modules/@nestjs/core/router/router-execution-context.js:148:23) at async Promise.all (index 1) at async pipesFn (/app/node_modules/@nestjs/core/router/router-execution-context.js:151:13) at async /app/node_modules/@nestjs/core/router/router-execution-context.js:37:30 "response": { "error": "Session status is not as expected. Try again later or restart the session", "session": "farma", "status": "STARTING", "expected": [ "SCAN_QR_CODE" ] }, "status": 422, "options": {}, "name": "UnprocessableEntityException" }
05:46:48.681] WARN (WebhookSender/42): session:demo - Error sending POST request: 'Request failed with status code 429'. Retrying 9/15... {"session":"demo","id":"01K44E9YT1KQQZ7WFD2JKJ"} [05:47:04.202] WARN (WebhookSender/42): session:demo - Error sending POST request: 'Request failed with status code 429'. Retrying 9/15... {"reqId":234,"session":"demo","id":"01K44EB0VDMWNKA76AAMQS2"} [05:47:35.445] WARN (WebhookSender/42): session:farma - Error sending POST request: 'Request failed with status code 429'. Retrying 7/15... {"reqId":490,"session":"farma","id":"01K44F6H1Z77QE69W8PM75"} [05:47:37.717] WARN (WebhookSender/42): session:demo - Error sending POST request: 'Request failed with status code 429'. Retrying 9/15... {"reqId":234,"session":"demo","id":"01K44EB76V4E0CXQMZ23G3Z"}
This error is coming - it is logging in, but not working. Kindly resolve.
{
"statusCode": 500,
"timestamp": "2025-09-02T07:37:40.293Z",
"exception": {
"message": "No input text",
"name": "Error",
"stack": "Error: No input text\n at Object.create (/app/node_modules/qrcode/lib/core/qrcode.js:476:11)\n at /app/node_modules/qrcode/lib/server.js:71:29\n at new Promise (
Same issue here
Hi everyone, thanks for the support 🙏 the problem seems related to this version, is it a known bug, should I download another version, could it be related to payment, please let me know here, thanks to all.