Skip to content

Ocelot: UnableToCompleteRequestError #1852

Answered by raman-m
clintcarter1999 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Clint !
Welcome to Ocelot world!

Please attach more details: configuration JSON, and C# code of your module, startup config also.

System.Net.Sockets.SocketException: Operation canceled
Seems your connection was aborted, canceled or closed by Websocket peer.


his .Net Core 2.2 API is running on a linux server.

Oh, this is quite old and legacy .NET framework!
You have to update your downstream service running .NET Core 2.2.
Pay attention that Ocelot and downstream service can have different .NET versions which lead to malfunctioning of WebSocket and even HttpClient!
So, I would say this error could be .NET version (System.Net clients) incompatibility problem.
So, Ocelot or downstream s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;)
3 participants
Converted from issue

This discussion was converted from issue #1601 on December 15, 2023 12:03.