[Beta Support]: WebSocket connections not closed on camera group / single camera view navigation, leading to "Insufficient resources" error #22761
Closed
ibs0d
started this conversation in
Beta Support
Replies: 1 comment 3 replies
-
|
Thanks, there were actually a couple of factors causing the issue. I've improved it in #22762 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem you are having
Great project, thank you for your work.
When navigating between camera groups, or switching between a single camera view and a group view, WebSocket connections are not properly closed. Each navigation event leaves behind one or more orphaned WebSocket connections. Over time — and proportionally to the number of cameras — these accumulate until the browser throws:
WebSocket connection to 'wss://...' failed: Insufficient resources
Once this limit is hit, cameras in the grid can no longer switch to MSE playback, and single camera view becomes completely non-functional.
Reproduction rate depends heavily on camera count:
16 cameras — reproducible, but requires rapid repeated navigation over some time
32 cameras — reproduces quickly
62 cameras — 3–4 clicks is enough to trigger the error
Claude suggested a fix: ibs0d@43a2d01
This resolves the issue, though it introduces failed: WebSocket is closed before the connection is established errors in the console. In my case these have no practical impact, so I consider it an acceptable workaround for now.
Beta Version
current dev
Issue Category
WebUI / Frontend
Frigate config file
simpleRelevant Frigate log output
Relevant go2rtc log output (if applicable)
Install method
Docker Compose
docker-compose file or Docker CLI command
simpleOperating system
Other Linux
CPU / GPU / Hardware
No response
Screenshots
No response
Steps to reproduce
No response
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions