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

[BUG][WEBJS][CHROME] - Exception when sending a message.

Open ehussain opened this issue 9 months ago • 1 comments

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":"[email protected]","session":"60302","type":"text","text":"בוקר טוב \nטרם חלפו כ- 90 ימי עסקים \nאנו כמובן מלווים את התהליך עד להעברת הסכום לחשבונך","reply_to":"[email protected]_3EB0376C8C7E2EA03FE54C"},"query":{}},"version":{"version":"2024.5.8","engine":"WEBJS","tier":"PLUS","browser":"/usr/bin/google-chrome-stable"}}

patron:ADVANCED

ehussain avatar May 23 '24 04:05 ehussain