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

const version = indexHtml.match(/manifest-([\d\\.]+)\.json/)[1]; #3043

Closed
1 task done
officialomkarjadhav opened this issue May 19, 2024 · 4 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@officialomkarjadhav
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

After Scanning QR code i am getting this error,

Expected behavior

As it needs to show client is ready!

Steps to Reproduce the Bug or Issue

npm start

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

whatsapp-web.js version latest
Node.js Version- Node.js v21.6.1

Additional context

No response

@officialomkarjadhav officialomkarjadhav added the bug Something isn't working label May 19, 2024
@officialomkarjadhav officialomkarjadhav changed the title Cannot read properties of undefined (reading 'default') const version = indexHtml.match(/manifest-([\d\\.]+)\.json/)[1]; May 19, 2024
@andresindlp
Copy link

Same issue here, just started a new project following the guide.

whatsapp-web.js v1.23.0
Node.js v22.2.0
macOS
Google Chrome

@officialomkarjadhav
Copy link
Author

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

use this as a client and try

@jfmoura
Copy link

jfmoura commented May 27, 2024

I did what @officialomkarjadhav suggested.
However, after scanning the QR code to link the device on my mobile, nothing happens despite there being no errors.

Expected behavior
As it needs to show client is ready!

Steps to Reproduce the Bug or Issue
npm start

Relevant Code
package.json:

"dependencies": {
"puppeteer": "21.7.0",
"qrcode-terminal": "0.12.0",
"whatsapp-web.js": "1.23.1-alpha.6"
...
}

my user, no GUI client:

const client = new Client({
authStrategy: new LocalAuth({ clientId: "client1", dataPath: './.wwebjs_auth' }), //remember session
puppeteer: {
args: ['--no-sandbox', '--disable-gpu'],
},
webVersionCache: {
type: 'remote',
remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2412.54.html'
}
});

WhatsApp Account Type
WhatsApp Business

Does your WhatsApp account have multidevice enabled?
No, I am not using Multi Device

Environment
whatsapp-web.js v1.23.1-alpha.6
Node.js v20.10.0
raspianOS Linux 6.1.69-v8+ #1711 SMP PREEMPT Thu Dec 21 14:27:49 GMT 2023 aarch64 GNU/Linux
Terminal Google Chrome

Thank you in advance.

@clayto-nr
Copy link

deu certo aqui

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

use isso como um cliente e tente"

obrigado

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants