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.53k stars 3.7k forks source link

Error on npm start #3204

Closed morshud closed 4 months ago

morshud commented 4 months ago

Is there an existing issue for this?

Describe the bug

Initializing... /Users/mac/projects/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 (/Users/mac/projects/whatsapp-web.js/src/webCache/LocalWebCache.js:34:69) at /Users/mac/projects/whatsapp-web.js/src/Client.js:786:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Expected behavior

The server supposed to start instead am getting error

Steps to Reproduce the Bug or Issue

  1. Run npm start

Relevant Code

No response

Browser Type

Other (please write in Additional Context)

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

Node JS

Additional context

No response