Skip to content
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

Show an error screen when the SFU is at capacity #3022

Merged
merged 5 commits into from
Feb 26, 2025

Conversation

robintown
Copy link
Member

⚠️ Based on #3021, please review only the new commit

Screenshot from 2025-02-24 19-15-12

Closes #2998

This is a refactor of how we handle and present errors that happen during a call. Rather than assuming that any errors will be manually passed to onLeave, this wraps the call in a React error boundary that takes care of leaving the session and presenting connection errors or crash screens as needed. Importantly, this now allows the 'connection lost' screen to be visible even in widget mode, since we aren't entangling errors with the 'call ended' component (which is deliberately hidden from widgets).
@robintown robintown requested a review from a team as a code owner February 24, 2025 12:17
@robintown robintown requested a review from hughns February 24, 2025 12:17
@robintown robintown added the X-Blocked Cannot be merged due to external dependencies label Feb 24, 2025
@hughns hughns changed the base branch from livekit to robin/in-call-errors February 26, 2025 08:25
@hughns hughns removed the X-Blocked Cannot be merged due to external dependencies label Feb 26, 2025
@hughns hughns changed the base branch from robin/in-call-errors to livekit February 26, 2025 11:06
Copy link
Member

@hughns hughns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested wording change.

Copy link
Member

@hughns hughns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, subject to wording change review from @fkwp.

Co-authored-by: Hugh Nimmo-Smith <hughns@users.noreply.github.com>
@hughns hughns merged commit 31577d7 into livekit Feb 26, 2025
9 checks passed
@hughns hughns deleted the robin/insufficient-capacity branch February 26, 2025 12:01
@hughns
Copy link
Member

hughns commented Feb 26, 2025

Please note, this new error won't be visible in clients until #2955 is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect when LiveKit Cloud SFU is at capacity and show an error to the user
3 participants