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
14.53k stars 3.46k forks source link

TypeError: Cannot read properties of null (reading '1') #2923

Closed capJack29 closed 3 months ago

capJack29 commented 3 months ago

Is there an existing issue for this?

Describe the bug

TypeError: Cannot read properties of null (reading '1') at LocalWebCache.persist (C:\Job\wabot7\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69) at C:\Job\wabot7\node_modules\whatsapp-web.js\src\Client.js:733:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Expected behavior

нужен запуск ватсап, не вижу решений, во всех ветках нет алгоритма решения, списка нужных команд

Steps to Reproduce the Bug or Issue

after start bot: error

Then I do: npm r (deinstall)

Then I tried to solve the problem with tips, but the error remained: error1

Please Help! Admin dont closed please, in #2789 - didn't find a solution!

Relevant Code

File - C:\Job\wabot7\src\webCache\LocalWebCache.js :

const path = require("path"); const fs = require("fs");

const { WebCache, VersionResolveError } = require("./WebCache");

/**

module.exports = LocalWebCache;

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

Windows

Additional context

didn't find the right advice

1244453393 commented 3 months ago

look here https://github.com/pedroslopez/whatsapp-web.js/pull/2816