bot-whatsapp icon indicating copy to clipboard operation
bot-whatsapp copied to clipboard

Error in library puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221

Open basher2 opened this issue 2 years ago • 2 comments

I get this error message when receiving a message:

        throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));

rror: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'features') at Object.window.WWebJS.sendMessage (puppeteer_evaluation_script:92:39) at puppeteer_evaluation_script:10:45 at ExecutionContext._evaluateInternal (/home/bot/bot-whatsapp-main/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ExecutionContext.evaluate (/home/bot/bot-whatsapp-main/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16) at async Client.sendMessage (/home/bot/bot-whatsapp-main/node_modules/whatsapp-web.js/src/Client.js:594:28)

basher2 avatar Apr 23 '22 05:04 basher2

actualizar a la V1.16.6 de whatsapp-web.js y este inconveniente se fixea

Gonzalito87 avatar Apr 26 '22 12:04 Gonzalito87

@Gonzalito87 si gustas envíame un PR solo con el cambio de versión

leifermendez avatar Apr 26 '22 12:04 leifermendez

Hola estoy con el mismo error me podrían explicar como solucionarlo porfavor.

throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'isMDBackend') at puppeteer_evaluation_script:13:68 at ExecutionContext._evaluateInternal (F:\chatbot\bot-whatsapp-main\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ExecutionContext.evaluate (F:\chatbot\bot-whatsapp-main\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (F:\chatbot\bot-whatsapp-main\node_modules\whatsapp-web.js\src\Client.js:221:9)

MarioJarrinV avatar Nov 02 '22 01:11 MarioJarrinV

Hola estoy con el mismo error me podrían explicar como solucionarlo porfavor.

throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'isMDBackend') at puppeteer_evaluation_script:13:68 at ExecutionContext._evaluateInternal (F:\chatbot\bot-whatsapp-main\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ExecutionContext.evaluate (F:\chatbot\bot-whatsapp-main\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (F:\chatbot\bot-whatsapp-main\node_modules\whatsapp-web.js\src\Client.js:221:9)

Solo ejecuta el siguiente comando para actualizar la libreria de whatsapp-web.js:

npm i github:pedroslopez/whatsapp-web.js

shelomito12 avatar Nov 08 '22 13:11 shelomito12

¿Alguna novedad sobre esta ISSUE?

github-actions[bot] avatar Jan 07 '23 23:01 github-actions[bot]