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

Page Crashing. After 20 minutes of running #315

Closed tradename closed 2 years ago

tradename commented 2 years ago

Error: Page crashed! at Page._onTargetCrashed (/home/carol/WBOT/node_modules/puppeteer-core/lib/Page.js:170:24) at CDPSession.Page.client.on.event (/home/carol/WBOT/node_modules/puppeteer-core/lib/Page.js:125:56) at CDPSession.emit (events.js:198:13) at CDPSession._onMessage (/home/carol/WBOT/node_modules/puppeteer-core/lib/Connection.js:200:12) at Connection._onMessage (/home/carol/WBOT/node_modules/puppeteer-core/lib/Connection.js:112:17) at WebSocketTransport._ws.addEventListener.event (/home/carol/WBOT/node_modules/puppeteer-core/lib/WebSocketTransport.js:41:24) at WebSocket.onMessage (/home/carol/WBOT/node_modules/ws/lib/event-target.js:120:16) at WebSocket.emit (events.js:198:13) at Receiver.receiverOnMessage (/home/carol/WBOT/node_modules/ws/lib/websocket.js:789:20) at Receiver.emit (events.js:198:13)

vasani-arpit commented 2 years ago

are you running this in headless mode? are you using any scripts in CustomInjectionFolder config?

tradename commented 2 years ago

yes its in headless mode. Ubuntu Digitalocean VPS. It runs for a few minutes but after about 15min it crashes

No extrenal scripts running

vasani-arpit commented 2 years ago

as puppeteer is based on chromium it is resource heavy. Make sure you have at least 1.5-2 gigs of ram to run it smoothly.

tradename commented 2 years ago

Increasing RAM resolved the issue. Thanks