-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bug]: websocket app demo connection cleanup #1576
Comments
Your WebSocket server ran out of resources due to too many connections or insufficient system capacity. The error RESOURCE_EXHAUSTED means the maximum allowed concurrent connections were reached, causing the server to close connections with an internal error. Fix it by: Increasing server resource limits. |
Thank you for the reply and the detailed explanation and proposed solutions. I will look into them. |
@philhosophy , did you figure out a way to cleanup connection? |
+1, the multimodal live api notebook needs connection cleanups to be added- I've hit resources exhausted multiple times. |
Thanks for the insights! I also encountered this issue in both the notebook and local demo—refreshing the page multiple times leads to a 1011 (RESOURCE_EXHAUSTED) error, and I have to wait for the API to release resources. I'm still investigating how to properly clean up WebSocket connections. If anyone has suggestions, I'd appreciate the help! |
File Name
gemini/multimodal-live-api/websocket-demo-app/backend/main.py
What happened?
closing connections and cleanup
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: