whatsapp-http-api
whatsapp-http-api copied to clipboard
[BUG][WEBJS] - restart connection every N minutes
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:
- Start a few NOWEB sessions
- 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.
- 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
Screenshots
Additional context