OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

whatsapp-web.js, How can I fix TypeError: Cannot read properties of null (reading '1')

  • Thread starter Thread starter Godwin Tobi
  • Start date Start date
G

Godwin Tobi

Guest
const version = indexHtml.match(/manifest-([\d.]+).json/)[1]; ^

TypeError: Cannot read properties of null (reading '1') at LocalWebCache.persist (/Users/abc/Desktop/haba/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:29:69) at /Users/abc/Desktop/haba/node_modules/whatsapp-web.js/src/Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.11.1

once the code is run the second time, it always brings this error.

i was using nodemon so I did: npx nodemon index.js smooth running

<p>const version = indexHtml.match(/manifest-([\d.]+).json/)[1];
^</p>
<p>TypeError: Cannot read properties of null (reading '1')
at LocalWebCache.persist (/Users/abc/Desktop/haba/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:29:69)
at /Users/abc/Desktop/haba/node_modules/whatsapp-web.js/src/Client.js:744:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)</p>
<p>Node.js v20.11.1</p>
<p>once the code is run the second time, it always brings this error.</p>
<p>i was using nodemon so I did: npx nodemon index.js
smooth running</p>
 

Latest posts

Top