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
15.05k stars 3.58k forks source link

Bot stops responding after 30 minutes. #1186

Closed samuelmunyoki closed 2 years ago

samuelmunyoki commented 2 years ago

Bug description

For some reason my whatsapp bot runs fun for the first 30 mimutes then it stops responding.I think it is puppeteer that goes to sleep, i don't know. I have deployed the app on ubuntu server. I have tried adding an express server and adding the address of the server to this pinging websites like cron jobs but still the app goes to sleep. Any work around this issue?

Reproduction steps

Steps to reproduce the behavior:

  1. Making an express server and pinging it.
  2. Pinging the expesss server via cron jobs
  3. Using pm2 to run Nide js index file ...

Expected behavior

The not should always be online.

Environment (please complete the following information):

WhatsApp

Library

Other

andrii-bohdan commented 2 years ago

I have the same problem :(

roysG commented 2 years ago

Same :(, any update?

john-mbone commented 2 years ago

Same problem

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.