Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client not connect #3039

Closed
1 task done
jjrosalesuci opened this issue May 16, 2024 · 9 comments
Closed
1 task done

Client not connect #3039

jjrosalesuci opened this issue May 16, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@jjrosalesuci
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

/Users/juan.rosales/Desktop/juan/worker/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229
throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
at pptr://puppeteer_evaluation_script:5:95
at ExecutionContext._ExecutionContext_evaluate (/Users/juan.rosales/Desktop/juan/worker/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (/Users/juan.rosales/Desktop/juan/worker/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16)
at async Client.initialize (/Users/juan.rosales/Desktop/juan/worker/node_modules/whatsapp-web.js/src/Client.js:340:9)

Expected behavior

Client connected

Steps to Reproduce the Bug or Issue

node 18

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Macos
whatsapp-web.js: ^v1.23.1-alpha.6
node: 18

Additional context

No response

@jjrosalesuci jjrosalesuci added the bug Something isn't working label May 16, 2024
@silveira2974
Copy link

silveira2974 commented May 16, 2024

Try use this:

const wwebVersion = '2.2407.3';

const client = new Client({
    authStrategy: new LocalAuth(), // your authstrategy here
    puppeteer: {
      headless: true , args: ['--no-sandbox', '--disable-setuid-sandbox'],
    },
    webVersionCache: {
        type: 'remote',
        remotePath: `https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html`,
    },
});

@GregoJDK2024
Copy link

Not work for me.

All updated.

@NatanSilva18
Copy link

after updating to new version here it resolved

npm install github:pedroslopez/whatsapp-web.js#webpack-exodus

@rafaelglez94
Copy link

@NatanSilva18 Resolved for me too. Thank you. NPM is no update.

@NatanSilva18
Copy link

I was using alpha v1.23.1-alpha.4

@rogeriosims
Copy link

work for me

npm install github:pedroslopez/whatsapp-web.js#webpack-exodus

@leog1992
Copy link

Try use this:

const wwebVersion = '2.2407.3';

const client = new Client({
    authStrategy: new LocalAuth(), // your authstrategy here
    puppeteer: {
      headless: true , args: ['--no-sandbox', '--disable-setuid-sandbox'],
    },
    webVersionCache: {
        type: 'remote',
        remotePath: `https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html`,
    },
});

hay q agregar datapath en authstrategy

authStrategy: new LocalAuth({ dataPath: 'weblocal' //nombre carpeta que guardara cache }), // your authstrategy here

@AkioTokuyosi
Copy link

this solution work for me

yarn add github:pedroslopez/whatsapp-web.js#webpack-exodus

@alechkos
Copy link
Collaborator

#2789
#2816

@alechkos alechkos closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Repository owner locked and limited conversation to collaborators May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants