pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.46k stars 3.68k forks source link

Evaluation failed: Error: MsgKey error: #414

Closed akshaysisodia closed 4 years ago

akshaysisodia commented 4 years ago

UnhandledPromiseRejectionWarning: Error: Evaluation failed: Error: MsgKey error: don't have a matching constructor at new e (https://web.whatsapp.com/app2.85d299d29db566c4295d.js:2:834372) at Object.window.WWebJS.sendMessage (puppeteer_evaluation_script:62:26) at puppeteer_evaluation_script:18:45 at ExecutionContext._evaluateInternal (D:__WhatsappBOT\DemoAsync\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:220:19) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) at async ExecutionContext.evaluate (D:__WhatsappBOT\DemoAsync\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:108:20) at async Client.sendMessage (D:__WhatsappBOT\DemoAsync\node_modules\whatsapp-web.js\src\Client.js:468:28) (node:17804) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

sagus1231 commented 4 years ago

Do you already solve it?

dudanogueira commented 4 years ago

having this issue here too :(

pedroslopez commented 4 years ago

@dudanogueira Update to the latest release, it was fixed in v1.11.0