Giter Club home page Giter Club logo

Comments (9)

budi-fdln avatar budi-fdln commented on September 24, 2024 8

i have same issue with this error
Unhandled rejection: {}
Promise {
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
at puppeteer_evaluation_script:5:95
at ExecutionContext._evaluateInternal (D:\CHATBOT\RS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (D:\CHATBOT\RS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
at async Client.initialize (D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\Client.js:323:9)
}
Unhandled rejection: {}
Promise {
TypeError: Cannot read properties of null (reading '1')
at LocalWebCache.persist (D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69)
at D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\Client.js:744:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}

from whatsapp-web.js.

Eonus avatar Eonus commented on September 24, 2024 4

Guys please dont mix issues,
Cannot read properties of null (reading '1') and Cannot read properties of undefined (reading 'default') are other issues, not related to this. Please follow discussion here #2789 and check this PR #2816

from whatsapp-web.js.

chumarrento avatar chumarrento commented on September 24, 2024 2

i have same issue with this error Unhandled rejection: {} Promise { Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:5:95 at ExecutionContext._evaluateInternal (D:\CHATBOT\RS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (D:\CHATBOT\RS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\Client.js:323:9) } Unhandled rejection: {} Promise { TypeError: Cannot read properties of null (reading '1') at LocalWebCache.persist (D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69) at D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) }

Same here, sometimes this error occurs too

TypeError: Cannot read properties of null (reading '1') at LocalWebCache.persist (whatsapp-web.js/src/webCache/LocalWebCache.js:33:69)

from whatsapp-web.js.

SergioZhidkov avatar SergioZhidkov commented on September 24, 2024 2

i have same issue with this error Unhandled rejection: {} Promise { Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:5:95 at ExecutionContext._evaluateInternal (D:\CHATBOT\RS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (D:\CHATBOT\RS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\Client.js:323:9) } Unhandled rejection: {} Promise { TypeError: Cannot read properties of null (reading '1') at LocalWebCache.persist (D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69) at D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) }

We have the same problem. And we have no idea how to fix it...

Also today we have some problems with parsing manifest.json - persist method in LocalWebCache.js nowadays has no profit anymore. If you inspect web.whatsapp.com - there is no info about manifest version anymore

from whatsapp-web.js.

TemaSM avatar TemaSM commented on September 24, 2024

We had a similar problem.

We solved it this way:

  1. Installed a VPN on the smartphone, for example, Cloudflare WARP (https://warp.plus/keWnd)
  2. Log out of WhatsApp on the smartphone
  3. Cleared the cache and data of the WhatsApp app on Android/iOS (fully reinstall WhatsApp on iOS)
  4. Reboot smartphone
  5. Opened and enabled Cloudflare WARP on the smartphone, confirmed the creation of a VPN profile in Android/iOS
  6. Opened WhatsApp and logged in to WhatsApp account
  7. Initiated the process of linking the WhatsApp account to the whatsapp-web.js's session via QR code
  8. The session successfully started and synchronization completed
    Done!

Most likely the problem was due to a DNS issue on the network infrastructure side of WhatsApp/Meta, or there was a connectivity issue, or DNS cache.

from whatsapp-web.js.

desenvolvimento02jocc avatar desenvolvimento02jocc commented on September 24, 2024

i have same issue with this error Unhandled rejection: {} Promise { Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:5:95 at ExecutionContext._evaluateInternal (D:\CHATBOT\RS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (D:\CHATBOT\RS\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\Client.js:323:9) } Unhandled rejection: {} Promise { TypeError: Cannot read properties of null (reading '1') at LocalWebCache.persist (D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69) at D:\CHATBOT\RS\node_modules\whatsapp-web.js\src\Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) }

same here, waiting for a fix, it alternates between this error and
(node:30) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'WidFactory')

from whatsapp-web.js.

Eonus avatar Eonus commented on September 24, 2024

Seems like error happens on version 2.3000.1012539641

from whatsapp-web.js.

Eonus avatar Eonus commented on September 24, 2024

To prevent advices like "use cached version", it does not help here becasue whatsapp anyway change version to this 2.3000.1012539641

from whatsapp-web.js.

alechkos avatar alechkos commented on September 24, 2024

Related to #2789

from whatsapp-web.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.