pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.18k stars 3.62k forks source link

GET ERROR - Cannot read property #3206

Closed IgalNeeman closed 2 months ago

IgalNeeman commented 2 months ago

Is there an existing issue for this?

Describe the bug

PS C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main> node .\example.js C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main\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\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main\src\webCache\LocalWebCache.js:34:69) at C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main\src\Client.js:757:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.13.0 PS C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main>

Expected behavior

cant run the exampe.js

Steps to Reproduce the Bug or Issue

cant run example.js it was worked, and stop to work. i am devleoper 5 yeas experiance with puppeteer

got error

PS C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main> node .\example.js C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main\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\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main\src\webCache\LocalWebCache.js:34:69) at C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main\src\Client.js:757:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.13.0 PS C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main>

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

PS C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main> node .\example.js C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main\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\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main\src\webCache\LocalWebCache.js:34:69) at C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main\src\Client.js:757:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.13.0 PS C:\Users\igaln\Desktop\whatsapp-web.js-main\whatsapp-web.js-main>

Additional context

cant run example.js