this message appears when i initialize the bot. ps: all libs and dependencies are installed.
PS C:\Users\User\Videos\testbot> node "c:\Users\User\Videos\testbot\index.js"
c:\Users\User\Videos\testbot\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\User\Videos\testbot\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69)
at c:\Users\User\Videos\testbot\node_modules\whatsapp-web.js\src\Client.js:744:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.11.0
Expected behavior
PS C:\Users\User\Videos\testbot> node "c:\Users\User\Videos\testbot\index.js"
c:\Users\User\Videos\testbot\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\User\Videos\testbot\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69)
at c:\Users\User\Videos\testbot\node_modules\whatsapp-web.js\src\Client.js:744:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
client.on('ready', () => {
console.log('Client is ready!');
});
client.on('qr', qr => {
qrcode.generate(qr, {small: true});
});
client.initialize();
this is the code, when i start, appears this error:
PS C:\Users\User\Videos\testbot> node "c:\Users\User\Videos\testbot\index.js"
c:\Users\User\Videos\testbot\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\User\Videos\testbot\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69)
at c:\Users\User\Videos\testbot\node_modules\whatsapp-web.js\src\Client.js:744:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.11.0
Relevant Code
No response
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Is there an existing issue for this?
Describe the bug
this message appears when i initialize the bot. ps: all libs and dependencies are installed. PS C:\Users\User\Videos\testbot> node "c:\Users\User\Videos\testbot\index.js" c:\Users\User\Videos\testbot\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\User\Videos\testbot\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69) at c:\Users\User\Videos\testbot\node_modules\whatsapp-web.js\src\Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.11.0
Expected behavior
PS C:\Users\User\Videos\testbot> node "c:\Users\User\Videos\testbot\index.js" c:\Users\User\Videos\testbot\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\User\Videos\testbot\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69) at c:\Users\User\Videos\testbot\node_modules\whatsapp-web.js\src\Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.11.0
Steps to Reproduce the Bug or Issue
const { Client } = require('whatsapp-web.js'); const qrcode = require('qrcode-terminal');
const client = new Client();
client.on('ready', () => { console.log('Client is ready!'); });
client.on('qr', qr => { qrcode.generate(qr, {small: true}); });
client.initialize();
this is the code, when i start, appears this error: PS C:\Users\User\Videos\testbot> node "c:\Users\User\Videos\testbot\index.js" c:\Users\User\Videos\testbot\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\User\Videos\testbot\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69) at c:\Users\User\Videos\testbot\node_modules\whatsapp-web.js\src\Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.11.0
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
Node version 20.11.0
Additional context
No response