Skip to content

[price-service] Handle WS error #501

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

Merged
merged 1 commit into from
Jan 17, 2023
Merged

Conversation

ali-behjati
Copy link
Collaborator

@ali-behjati ali-behjati commented Jan 17, 2023

There is a low chance that ws errors happens but it is positive and has happened a couple of times with the following error:
RangeError: Invalid WebSocket frame: RSV2 and RSV3 must be clear

We didn't handle such errors so they crashed the service. This PR will handle it explicitly. It logs the error and ignores it. The connection will get closed itself or if not the pinging mechanism will prone it.

@vercel
Copy link

vercel bot commented Jan 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
xc-admin-frontend ⬜️ Ignored (Inspect) Jan 17, 2023 at 2:26PM (UTC)

@ali-behjati ali-behjati requested a review from thmzlt January 17, 2023 14:26
@ali-behjati ali-behjati merged commit 9cbdeb3 into main Jan 17, 2023
@ali-behjati ali-behjati deleted the price-service/fix-ws-bug branch January 17, 2023 14:43
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.

2 participants