devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
943 stars 283 forks source link

[bug] - Unexpected exception when message is sent #216

Open ehussain opened 1 year ago

ehussain commented 1 year ago

Hello,

I see unexpected error in response when message is sent.

/sendText 

{"chatId":"9725479XXXX@c.us","session":"60XXX","type":"text","text":"\u05d4\u05d9,\n\u05dc\u05d4\u05d6\u05db\u05d9\u05e8\u05da \u05e0\u05e7\u05d1\u05e2\u05d4 \u05dc\u05e0\u05d5 \u05e9\u05d9\u05d7\u05d4 \u05dc\u05e2\u05d5\u05d3 \u05db\u05d7\u05e6\u05d9 \u05e9\u05e2\u05d4.\n\u05d1\u05de\u05d9\u05d3\u05d4 \u05d5\u05d4\u05e9\u05d9\u05d7\u05d4 \u05ea\u05ea\u05e7\u05d9\u05d9\u05dd \u05d1\u05d6\u05d5\u05dd.\n \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05ea\u05d7\u05d1\u05e8 \u05d0\u05dc\u05d9\u05d4 \u05db\u05d0\u05df: lvkn.in\/Zoom\n\u05e0\u05ea\u05e8\u05d0\u05d4 \u05d1\u05e7\u05e8\u05d5\u05d1 \ud83d\ude0a"}

Above message is encoded in hebrew and it works fine with message sending. But we get the response below.

{"statusCode":500,"timestamp":"2023-10-04T08:30:42.663Z","exception":{"stack":"Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'WidFactory')\n    at __puppeteer_evaluation_script__:2:42\n    at ExecutionContext._evaluateInternal (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)\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/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)\n    at async Client.sendMessage (/app/node_modules/whatsapp-web.js/src/Client.js:869: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 'WidFactory')\n    at __puppeteer_evaluation_script__:2:42","name":"Error"},"request":{"path":"/api/sendText","method":"POST","body":{"chatId":"9725479XXXX@c.us","session":"60XXX","type":"text","text":"×<94>×<99>,\n×<9c>×<94>×<96>×<9b>×<99>ר×<9a> נק×<91>×¢×<94> ×<9c>× ×<95> ש×<99>×<97>×<94> ×<9c>×¢×<95>×<93> ×<9b>×<97>צ×<99> שע×<94>.\n×<91>×<9e>×<99>×<93>×<94> ×<95>×<94>ש×<99>×<97>×<94> תתק×<99>×<99>×<9d> ×<91>×<96>×<95>×<9d>.\n × ×<99>ת×<9f> ×<9c>×<94>ת×<97>×<91>ר ×<90>×<9c>×<99>×<94> ×<9b>×<90>×<9f>: lvkn.in/Zoom\nנתר×<90>×<94> ×<91>קר×<95>×<91> ð<9f><98><8a>"},"query":{}},"version":{"version":"2023.9.7","tier":"PLUS","browser":"/usr/bin/chromium"}}