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

Multiple Issues with Whatsapp-http-api-plus version during creating session

Open ksingh7 opened this issue 1 year ago • 5 comments

  1. I tried to create a session (multiple time) but it fails, throwing the below error TimeoutError: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r982053 is guaranteed to work.

image

  1. After this failure i ran GET /api/sessions and the status was failed image

  2. Next i tried to stop the session by calling /api/sessions/stop and provided the session name image This resulted in error as shown below image

  3. Then tried to GET /api/sessions image

However in logs i am continuously getting QR codes image

I am using devlikeapro/whatsapp-http-api-plus container image to deploy this application on Kubernetes .

ksingh7 avatar Jul 25 '23 10:07 ksingh7

Also intermittently i am getting issues like NO QR in /api/screenshot response

image

ksingh7 avatar Jul 25 '23 11:07 ksingh7

@allburov can you help with the above reported issues , are these known issues with the default engine ? should we try changing the engine or something else to get it working.

I am looking to achieve consistency in establishing a session >> getting QR images >> authenticating session.

ksingh7 avatar Jul 25 '23 11:07 ksingh7

@allburov appreciate any guidance on this

ksingh7 avatar Aug 01 '23 06:08 ksingh7

Hi! Could you try to POST /logout for that session and start it again?

allburov avatar Aug 01 '23 07:08 allburov

I can confirm this bug.

Maybe this bug only happen when list of chats are very long. I confirm this bug happened on a session that have 2000+ open chats and 1000+ unread chats.

Here is some logs:

(node:34) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
(node:34) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 SIGINT listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(node:34) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 SIGTERM listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(node:34) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 SIGHUP listeners added to [process]. Use emitter.setMaxListeners() to increase limit

Kristian-Tan avatar Sep 06 '23 01:09 Kristian-Tan

Hi! Could you try the recent version, 2026.6.4? We've fixed the chrome version there and added chats limit query for getting long list of chats

https://waha.devlike.pro/docs/how-to/chats/#get-all-chats

patron:PRO

devlikepro avatar Jun 17 '24 04:06 devlikepro

If it doesn't help - please comment here and we'll reopen the issue!

patron:PRO

devlikepro avatar Jun 17 '24 04:06 devlikepro