-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request][NOWEB] - Hide "auto-restart" from API (STARTING => WORKING status changes) #756
Comments
Hi! websocket reconnects every now and then, by default every 30 minutes, so session can move from When you perform API request to the session that currently restarting - it wait in most cases for 5 seconds, so you shouldn't notice it (but shit happens, yeah) |
@devlikepro Thank you for quick response Every session on my server has good traffic, like everyday for 5 hr's a every session send's 3 to 8 message's every minute. What do think should i worry about this or is there any way to stop this behavior. |
You can add a retry on your end if you get the response about a session in You'll get {
"error": "Session status is not as expected. Try again later or restart the session",
"session": "sessionName",
"status": "STARTING",
"expected": ["WORKING"]
} in this case it's safe to try again (or any other errors, usually) |
No, it's good practice from real expreience with NOWEB engine we've had. Otherwise it stops working properly. We probably could log it as "warning" not error and hide from the API that sessions is restarting right now (just add timeout to HTTP API call that would wait until the session gets back to WORKING) |
Yes, something to reduce webhook traffic would be nice for session.status. If we could further filter session.status (eg session.status.failed) so as to pick what is needed for webhook, that would also be nice. |
Describe the bug
When the dashboard tab is active everything fine, but when i close the dashboard tab the session are Auto-restarting.
Docker Logs
i have attached logs for both situation when the dashboard is active and when it is not active.
Additional context
env variables
WAHA_GOWS_PATH=/app/gows
WAHA_GOWS_SOCKET=/tmp/gows.sock
WAHA_LOCAL_STORE_BASE_DIR=/sessions
WAHA_LOG_FORMAT=PRETTY
WAHA_LOG_LEVEL=info
WAHA_MEDIA_STORAGE=LOCAL
WAHA_ZIPPER=ZIPUNZIP
WHATSAPP_API_SCHEMA=http
WHATSAPP_DEFAULT_ENGINE=NOWEB
WHATSAPP_DOWNLOAD_MEDIA=false
1.dashboard is active
![Image](https://private-user-images.githubusercontent.com/176503257/406365642-33de68ef-104f-468b-9d52-97ecb133ccf9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6I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lMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQyMjI1MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MzY4ZWI1ZWZkOGYzOTJiMzJhNGJlM2E5YWVhNzAyMjFlNTU2NTQ1ZWY3MGU2NmMwNGVkYmVhOTdkNWYwODVmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.HvYAvXLF-se8U7l_qUFbrPbJOQK2XbQPz42NYVwuQTU)
2.dashboard is closed
The text was updated successfully, but these errors were encountered: