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.1k stars 3.6k forks source link

TypeError: Cannot read properties of null (reading '1') at LocalWebCache.js for fresh installation #3000

Closed pedrorocha-net closed 4 months ago

pedrorocha-net commented 4 months ago

Is there an existing issue for this?

Describe the bug

I just tried the basic installation and followed the instructions for the initial setup on a Mac, but it doesn't work, throwing the following error:

/Users/me/Sites/wwebjs-bot/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 (/Users/me/Sites/wwebjs-bot/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34:69) at /Users/me/Sites/wwebjs-bot/node_modules/whatsapp-web.js/src/Client.js:786:36

Expected behavior

As a new user, I expect to be able to run the basic installation, per the documentation, and have a plain starting point.

Steps to Reproduce the Bug or Issue

  1. Follow instructions for Mac at https://wwebjs.dev/guide/installation.html
  2. run "npm start"

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

Mac Node.js 16.15.1 whatsapp-web.js ^1.23.1

Additional context

No response

alechkos commented 4 months ago

2789

2816