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
14.62k stars 3.48k forks source link

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

Closed alexduca closed 1 month ago

alexduca commented 1 month ago

Is there an existing issue for this?

Describe the bug

When i scan the QRCode i get this error:

/home/wwjs/Scrivania/WWJS/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 'default')
    at __puppeteer_evaluation_script__:5:95
    at ExecutionContext._evaluateInternal (/home/wwjs/Scrivania/WWJS/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ExecutionContext.evaluate (/home/wwjs/Scrivania/WWJS/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
    at async Client.initialize (/home/wwjs/Scrivania/WWJS/node_modules/whatsapp-web.js/src/Client.js:323:9)

Node.js v20.13.1

I found some another topics but i didn't understand how to solve (sorry)

Expected behavior

client ready works!

Steps to Reproduce the Bug or Issue

try to connect with the client qrcode

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

NodeJS Version: 20.13.1 Ubuntu Version: 20.04 WhatsappWebJS Client:

const client = new Client({
    authStrategy: new LocalAuth({ clientId: 'wwjs' }),
    webVersion: '2.2409.2',
    webVersionCache: {
        type: 'remote',
        remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2409.2.html'
    }
});

Additional context

No response

alechkos commented 1 month ago

2789

2816