devlikeapro / waha

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

[BUG][WEBJS] - Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') #375

Closed AlbertMrMaruk closed 1 week ago

AlbertMrMaruk commented 2 weeks ago

Describe the bug

There is a new error when scanning qr code [Nest] 30 - 06/17/2024, 1:00:01 PM ERROR [WhatsappSession - default] Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at pptr://puppeteer_evaluation_script:5:95

And then session change status to FAILED

Version

{
  "version": "2024.4.4",
  "engine": "WEBJS",
  "tier": "PLUS",
  "browser": "/usr/bin/chromium"
}

Expected behavior

Do not change status to Failed

I'm using WEBJS engine.

Docker Logs

_whatsapp-http-api-4_logs (2).txt

devlikepro commented 2 weeks ago

Hi! Could you try to use the latest 2024.6.something version? If update doesn't help - could you please run the session with debug: true flag enabled?

https://waha.devlike.pro/docs/how-to/sessions/#enable-debug

{
  "name": "default",
  "config": {
    "debug": true
  }
}

patron:PRO

AlbertMrMaruk commented 2 weeks ago

Hello! There is debug log [Nest] 30 - 06/18/2024, 6:48:06 PM DEBUG [WhatsappSession - default] WEBJS event: {"event":"loading_screen","data":[100,"Loading your chats"]} [Nest] 30 - 06/18/2024, 6:48:10 PM ERROR [WhatsappSession - default] Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at pptr://puppeteer_evaluation_script:5:95

AlbertMrMaruk commented 2 weeks ago

There was some change in last version whatsapp-web-js? Maybe i can do something with this version

devlikepro commented 1 week ago

Try to

  1. /logout
  2. /start a new session again
  3. recreate a container

If it doesn't help - try to update it to the latest version. let us know if it doesn't help!

patron:PRO