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

After using webcashe #3037

Closed
1 task done
UmairHashmi90 opened this issue May 16, 2024 · 1 comment
Closed
1 task done

After using webcashe #3037

UmairHashmi90 opened this issue May 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@UmairHashmi90
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

using
whatsapp-web.js 1.23.0
and code

const wwebVersion = '2.2410.1';
const client = new Client({
restartOnAuthFail: true,
puppeteer: {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-accelerated-2d-canvas',
'--no-first-run',
'--no-zygote',
'--single-process', // <- this one doesn't works in Windows
'--disable-gpu'
],
headless: true,
},

webVersionCache: {
    type: 'remote',
    remotePath: `https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html`,
},
authStrategy: new LocalAuth({
  clientId: id,
}),

});

0|app-multiple-account | Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
0|app-multiple-account | at puppeteer_evaluation_script:5:95
0|app-multiple-account | at ExecutionContext._evaluateInternal (C:\whatsapp\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
0|app-multiple-account | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|app-multiple-account | at async ExecutionContext.evaluate (C:\whatsapp\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
0|app-multiple-account | at async Client.initialize (C:\whatsapp\node_modules\whatsapp-web.js\src\Client.js:323:9)

Expected behavior

0|app-multiple-account | Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
0|app-multiple-account | at puppeteer_evaluation_script:5:95
0|app-multiple-account | at ExecutionContext._evaluateInternal (C:\whatsapp\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
0|app-multiple-account | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|app-multiple-account | at async ExecutionContext.evaluate (C:\whatsapp\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
0|app-multiple-account | at async Client.initialize (C:\whatsapp\node_modules\whatsapp-web.js\src\Client.js:323:9)

Steps to Reproduce the Bug or Issue

scan and make it ready

Relevant Code

const wwebVersion = '2.2410.1';
const client = new Client({
restartOnAuthFail: true,
puppeteer: {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-accelerated-2d-canvas',
'--no-first-run',
'--no-zygote',
'--single-process', // <- this one doesn't works in Windows
'--disable-gpu'
],
headless: true,
},

webVersionCache: {
    type: 'remote',
    remotePath: `https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html`,
},
authStrategy: new LocalAuth({
  clientId: id,
}),

});

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

node v20.11.1

Additional context

Urgent

@UmairHashmi90 UmairHashmi90 added the bug Something isn't working label May 16, 2024
@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

2 participants