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][CHROME] - Exception when sending a message. #342

Closed ehussain closed 3 weeks ago

ehussain commented 1 month ago

Describe the bug We are facing exception when we try to send a message. This exception is intermittent but very frequent.

Version

{"version":"2024.5.8","engine":"WEBJS","tier":"PLUS","browser":"/usr/bin/google-chrome-stable"}

Requests - Responses

{"statusCode":500,"timestamp":"2024-05-22T08:03:51.298Z","exception":{"stack":"Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'unsafe')\n    at window.WWebJS.sendMessage (pptr://__puppeteer_evaluation_script__:38:67)\n    at pptr://__puppeteer_evaluation_script__:10:45\n    at ExecutionContext._ExecutionContext_evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229:15)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async ExecutionContext.evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16)\n    at async Client.sendMessage (/app/node_modules/whatsapp-web.js/src/Client.js:945:28)\n    at async /app/node_modules/@nestjs/core/router/router-execution-context.js:46:28\n    at async /app/node_modules/@nestjs/core/router/router-proxy.js:9:17","message":"Evaluation failed: TypeError: Cannot read properties of undefined (reading 'unsafe')\n    at window.WWebJS.sendMessage (pptr://__puppeteer_evaluation_script__:38:67)\n    at pptr://__puppeteer_evaluation_script__:10:45","name":"Error"},"request":{"path":"/api/reply","method":"POST","body":{"chatId":"972522XXXX@c.us","session":"60302","type":"text","text":"בוקר טוב \nטרם חלפו כ- 90 ימי עסקים \nאנו כמובן מלווים את התהליך עד להעברת הסכום לחשבונך","reply_to":"true_972522XXXX@c.us_3EB0376C8C7E2EA03FE54C"},"query":{}},"version":{"version":"2024.5.8","engine":"WEBJS","tier":"PLUS","browser":"/usr/bin/google-chrome-stable"}}

patron:ADVANCED

allburov commented 1 month ago

LEt's try 2024.5.9 and see how it goes!

patron:PRO

devlikepro commented 1 month ago

Did you see the issue again? @ehussain

patron:PRO

ehussain commented 1 month ago

Not in past couple of days. May be we can wait for few more days to find out if it is still happening.

patron:ADVANCED

devlikepro commented 4 weeks ago

How is it going?

patron:PRO