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

cannot initialize #2935

Closed
1 task done
pedrosarkis opened this issue Apr 9, 2024 · 1 comment
Closed
1 task done

cannot initialize #2935

pedrosarkis opened this issue Apr 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@pedrosarkis
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

as simple as possible.

const { Client } = require('whatsapp-web.js');

const client = new Client();

client.on('qr', (qr) => {
console.log('qr received');
})

client.on('ready', () => {
console.log('client is ready');
})

client.initialize();

wpp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34
const version = indexHtml.match(/manifest-([\d\.]+).json/)[1];
^

TypeError: Cannot read properties of null (reading '1')
at LocalWebCache.persist (C:\Users\Pedro\Desktop\teste wpp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69)
at C:\Users\Pedro\Desktop\teste wpp\node_modules\whatsapp-web.js\src\Client.js:744:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.12.1

Expected behavior

To initialize the client;

Steps to Reproduce the Bug or Issue

node app.js

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

windows

Additional context

No response

@pedrosarkis pedrosarkis added the bug Something isn't working label Apr 9, 2024
@alechkos
Copy link
Collaborator

alechkos commented Apr 9, 2024

#2789

@alechkos alechkos closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
Repository owner locked as resolved and limited conversation to collaborators Apr 9, 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