vasani-arpit / WBOT

A simple Web based BOT for WhatsApp™ in NodeJS 😜. Working as of 📅 Feb 4th, 2024
Other
988 stars 313 forks source link

New Bug - Don't Open #338

Closed Igor4Dantas closed 1 year ago

Igor4Dantas commented 1 year ago

I currently have a problem where I can't open the bot, when I scan the QrCode, the page closes. And the following message appears.

Looks like you got an error. Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
    at __puppeteer_evaluation_script__:14:123
Can't create shreenshot, X11 not running?. TypeError: Cannot read properties of undefined (reading 'screenshot')
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
    at __puppeteer_evaluation_script__:14:123
    at ExecutionContext._evaluateInternal (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)      
    at runMicrotasks (<anonymous>)
    at runNextTicks (node:internal/process/task_queues:61:5)
    at listOnTimeout (node:internal/timers:528:9)
    at processTimers (node:internal/timers:502:7)
    at async ExecutionContext.evaluate (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
    at async Client.initialize (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\node_modules\whatsapp-web.js\src\Client.js:267:9)
    at async downloadAndStartThings (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\src\index.js:167:9)
    at async Main (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\src\index.js:34:9)
Don't worry errors are good. They help us improve. A screenshot has already been saved as error.png in current directory. Please mail it on vasani.arpit@gmail.com along with the steps to reproduce it.

node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
    at __puppeteer_evaluation_script__:14:123
    at ExecutionContext._evaluateInternal (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)      
    at runMicrotasks (<anonymous>)
    at runNextTicks (node:internal/process/task_queues:61:5)
    at listOnTimeout (node:internal/timers:528:9)
    at processTimers (node:internal/timers:502:7)
    at async ExecutionContext.evaluate (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
    at async Client.initialize (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\node_modules\whatsapp-web.js\src\Client.js:267:9)
    at async downloadAndStartThings (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\src\index.js:167:9)
    at async Main (C:\Users\Igor Dantas\Desktop\WBOT-master\wbot\src\index.js:34:9)

Anyone had the same problem? or can help with some solution.

Igor4Dantas commented 1 year ago

I managed to fix it by updating the folder whatsapp-web.js.