devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click!
https://waha.devlike.pro/
Apache License 2.0
813 stars 248 forks source link

[BUG][WEBJS] - Session doesn't start. Always in FAILED state. #297

Closed gr8tushar closed 2 months ago

gr8tushar commented 2 months ago

Session doesn't start. It always ends up in FAILED state

Whenever a new session is requested, the state becomes SCAN_QR_CODE. After receiving the code, when we scan the code, the session doesn't start. It goes to failed state. However, the session in the mobile phone gets established.

This is the error in the logs.

[Nest] 34 - 04/17/2024, 7:44:43 AM ERROR [WhatsappSession - 8BBE9AAFD225465CB175FEAAC3E3A876] Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:5:95

Version

 {
  version: '2023.11.1',
  engine: 'WEBJS',
  tier: 'PLUS',
  browser: '/usr/bin/chromium'
}
allburov commented 2 months ago

Could you try to update to the latest version? We have an important update for WEBJS a month ago https://www.patreon.com/posts/waha-plus-webjs-100765474

allburov commented 2 months ago

It should show you 2024.4.3

gr8tushar commented 2 months ago

Hi, I got the latest version, and it is working now. Thanks. { "version": "2024.4.3", "engine": "WEBJS", "tier": "PLUS", "browser": "/usr/bin/chromium" }