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

LocalWebCache #2979

Closed
1 task done
muhammadaskar opened this issue Apr 21, 2024 · 3 comments
Closed
1 task done

LocalWebCache #2979

muhammadaskar opened this issue Apr 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@muhammadaskar
Copy link

muhammadaskar commented Apr 21, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I get error message when i start my project:

/app-prod/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 (/app-prod/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34:69)
    at /app-prod/node_modules/whatsapp-web.js/src/Client.js:744:36
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Expected behavior

I expect succes when i run my project using package whatsapp-web.js

Steps to Reproduce the Bug or Issue

  1. Do 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

OS: Mac and Linux
Phone OS: Android
whatsapp-web.js version 1.23.0
Node.js Version 21.6.2

Additional context

No response

@muhammadaskar muhammadaskar added the bug Something isn't working label Apr 21, 2024
@MrJmpl3
Copy link

MrJmpl3 commented Apr 21, 2024

Try this: #2789 (comment)

@PrashantPatil10178
Copy link

I faced a Similar Issue. /app-prod/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34:69
You can Locate This Directory.
const version = indexHtml.match(/manifest-([\d\.]+).json/)[1];
Just remove [1] from the Code It should Work Fine.

@alechkos
Copy link
Collaborator

#2789
#2816

@alechkos alechkos closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2024
Repository owner locked and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants