whatsapp-http-api icon indicating copy to clipboard operation
whatsapp-http-api copied to clipboard

[BUG][WEBJS] - restart connection every N minutes

Open AliBakerSartawi opened this issue 9 months ago • 0 comments

Describe the bug

Long-running NOWEB sockets error out sometimes. An internal restart every few minutes could be helpful.

Version

{
  "version": "latest",
  "engine": "NOWEB",
  "tier": "PLUS",
  "browser": "/usr/bin/google-chrome-stable"
}

To Reproduce Steps to reproduce the behavior:

  1. Start a few NOWEB sessions
  2. Sometimes the sockets would error out after some time (2 hours), sometimes they do not. When they error out, sometimes the whole WAHA server crashes, and sometimes the session is restarted after 2 seconds.
  3. I'm using an external file system to persist auth files... which may have some latency... so when the sessions restart, sometimes the auth files are corrupt and session loses its auth.

Expected behavior

Long-running NOWEB sockets should stay healthy.

Engine I'm using NOWEB engine.

Requests - Responses

Please attach all sent requests, responses that you sent.

Docker Logs

CleanShot 2024-05-19 at 07 02 14@2x

Screenshots

Additional context

CleanShot 2024-05-19 at 06 55 13@2x

patron:PRO

AliBakerSartawi avatar May 19 '24 04:05 AliBakerSartawi