-
Notifications
You must be signed in to change notification settings - Fork 1.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
WebSocket exception #1683
Comments
Hi Zhao! We have a big problem in Ocelot now because WebSockets feature is broken during releasing versions from v16 to v19.
This exception is strange, because it says the URL is invalid.
Didn't understand that! We need to find a root cause of the issue... |
Nice pictures! But... I cannot read non-English UI! Your solution is completely custom because of custom Nacos service discovery setup. Finally,I can say that your video and configs won't help to find a root cause of the issue. Again,Could you upload your Visual Studio solution to GitHub please, for evaluation? Next stepsReturning to the protocol error: I'm asking you to analyze the logs of downstream service to understand why downstream server has closed the connection. I assume we have Ocelot to Downstream server WebSocket libraries incompatibility. But we have to prove that! |
Thank you very much for your patience. |
@zhaoyongjie183 commented on Aug 7:
Sorry, does that mean you have invalid definitions of the routes in ocelot.json? |
@zhaoyongjie183 |
…SocketsProxyMiddleware (#1689) * Update WebSocketsProxyMiddleware.cs Fix WebSocket for SignalR * Repalce url protocol after null check * small refactoring * Add error log when replacing protocol in WebSocketProxyMiddleware Co-authored-by: Raman Maksimchuk <[email protected]> * Fix build * Code review * Fix unit test * Refactor to remove hardcoded strings of schemes * Define public constants * Add unit tests --------- Co-authored-by: raman-m <[email protected]>
@zhaoyongjie183 Could you test & verify the bug fix plz? You just need to update develop branch of your forked repo. |
Ocelot version: 19.0.2
Ocelot configuration, a route:
Direct Access to
ws://192.168.1.22:9082/api/websocket/xxl
was successful. 👇Ocelot UpstreamPathTemplate will report an error 👇
The error message of Ocelot pipeline is as follows:
The text was updated successfully, but these errors were encountered: