When client logged and bot was restarted, i receive this error:
/app/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/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34:69)
at /app/node_modules/whatsapp-web.js/src/Client.js:771:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.11.1
Is there an existing issue for this?
Describe the bug
When client logged and bot was restarted, i receive this error:
Here is the client html. html.zip
Expected behavior
The initialize finish without errors.
Steps to Reproduce the Bug or Issue
I'm not sure what the mandatory steps are for this problem, as I only have one cell phone with this problem.
Relevant Code
In LocalWebCache.js
A workaround provided by another user consists of manually placing the version in the code, like this:
Browser Type
Chromium
WhatsApp Account Type
WhatsApp Business
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Additional context
No response