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

Suppress frontend websocket error #8431

Merged

Conversation

hawkeye217
Copy link
Collaborator

This PR suppresses the often-seen error 104 "Connection reset by peer" for the frontend UI websocket by overriding the unhandled_error function from ws4py.

Several other projects on Github using websockets have done the same thing (example: https://github.com/canonical/pylxd/blob/9e73391db1437f88fc00d36c1b023c9eaf0d35ea/pylxd/models/instance.py#L759)

This error could also be suppressed in output.py for the birdseye websocket, but it might be best not to commit this there yet until the other output issues are mitigated.

Copy link

netlify bot commented Nov 2, 2023

Deploy Preview for frigate-docs ready!

Name Link
🔨 Latest commit 5c71715
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/6543a99023fa560008e7007d
😎 Deploy Preview https://deploy-preview-8431--frigate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@blakeblackshear blakeblackshear merged commit fc36be4 into blakeblackshear:dev Nov 2, 2023
10 checks passed
@hawkeye217 hawkeye217 deleted the suppress-websocket-error branch December 4, 2023 15:32
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.

None yet

3 participants