pranavms13 / whatsapp-node-api

A Simple NodeJS API Wrapper for WhatsApp
Other
475 stars 183 forks source link

Error ready QRCODE #16

Open leoteixeira2016 opened 3 years ago

leoteixeira2016 commented 3 years ago

(node:5304) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'default' of undefined at puppeteer_evaluation_script:5:51 at ExecutionContext._evaluateInternal (C:\API03\whatsapp-node-api-master\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:217:19) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async ExecutionContext.evaluate (C:\API03\whatsapp-node-api-master\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:106:16) at async Client.initialize (C:\API03\whatsapp-node-api-master\node_modules\whatsapp-web.js\src\Client.js:145:9) (Use node --trace-warnings ... to show where the warning was created) (node:5304) 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) (node:5304) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

pranavms13 commented 3 years ago

need more details. when does this happen?

kpbird commented 3 years ago

@pranavms13 It happens to me as well. I am using OSX 11.1 with node v12.13.0

lucassilvaesmeraldino commented 3 years ago

the same problem here.

mbeghe commented 3 years ago

Same error. After scanning qr in /auth/getqr

mbeghe commented 3 years ago

Nevermind...fixed by doing what @toni-ismail says on #23

dhyeythumar commented 3 years ago

I think this might also happen when someone deletes the token from WhatsApp. I have also observed that even if you have the valid token WhatsApp web won't authenticate & keeps looping on the QR code scan page. I this case you have to delete the older tokens & again scan the QR code.