whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Cannot read properties of undefined (reading 'newTag')

Open abdulaziz1999 opened this issue 2 years ago • 6 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221 throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'newTag') at puppeteer_evaluation_script:14:59 at ExecutionContext._evaluateInternal (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ExecutionContext.evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16) at async Client.initialize (/app/node_modules/whatsapp-web.js/src/Client.js:216:9)

Expected behavior

Steps to Reproduce the Bug or Issue

Relevant Code

Browser Type

Google Chrome

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

ubuntu

Additional context

if send message see log error

abdulaziz1999 avatar Mar 22 '22 06:03 abdulaziz1999

Same here.

tudonet avatar Mar 22 '22 20:03 tudonet

oh god please not this bug again

the-bash-guy avatar Mar 22 '22 21:03 the-bash-guy

The same is happening here, but with getChats function

GustavoBlaze avatar Mar 23 '22 23:03 GustavoBlaze

same here

ChrisAleksey avatar Mar 25 '22 21:03 ChrisAleksey

`(node:1934) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'canReply')

at Object.window.WWebJS.sendMessage (__puppeteer_evaluation_script__:34:31)
at __puppeteer_evaluation_script__:10:45
at ExecutionContext._evaluateInternal (/root/whatsapp/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async ExecutionContext.evaluate (/root/whatsapp/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
at async Client.sendMessage (/root/whatsapp/node_modules/whatsapp-web.js/src/Client.js:594:28)
at async Client.<anonymous> (/root/whatsapp/bot.js:329:37)

`

I am getting this after upgrading to the newest version of the library and trying to Reply to a message

AlloryDante avatar Apr 09 '22 08:04 AlloryDante

Same problem

ItzLarz avatar Apr 23 '22 18:04 ItzLarz