Unable to connect with SignalR with any available transports. Error 404 "No Connection with that ID" #1985
Replies: 6 comments 4 replies
-
Not sure this is going to help you, but in our setup we have this: SignalR service:
Then in ocelot, we have this route:
Then, we connect from our front-end app like this (in typescript..)
And about this:
AFAIK that is how it should be. If you, for example, look at the sample app here The value sent on Also, make sure you don't have any other routes that are selected first. Ocelot looks at them in order they are defined, so if a same route is defined first that is going to fail. Another thing, maybe to check is when you run your SignalR service, do you have ports for http and https? Are those correctly configured in the routes in Ocelot? And finally, remember to add |
Beta Was this translation helpful? Give feedback.
-
Ccheck your signalr response time with |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, but it should be issue of signalR-self (SevertSentEvent transport issue) |
Beta Was this translation helpful? Give feedback.
-
i have the same issue, did anyone found solution for this error? |
Beta Was this translation helpful? Give feedback.
-
I figured it out
|
Beta Was this translation helpful? Give feedback.
-
i set up most of the configuration here and i was receiving error as 1006 These are my config in the gateway routes {
"UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE", "OPTIONS", "CONNECT" ],
"UpstreamPathTemplate": "/ptmapi/hubs/{catchAll}",
"DownstreamPathTemplate": "/hubs/{catchAll}",
"DownstreamScheme": "wss",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5026
}
],
"DangerousAcceptAnyServerCertificateValidator": true
} |
Beta Was this translation helpful? Give feedback.
-
Problem
I have a react website in which I am trying to connect to SignalR hub on my .net core server via ocelot gateway.
I am unable to connect to hub and get a 404 error "No Connection with that ID". I have only one server instance running and no load balancer is involved.
Even though the negotiate call is always successful.
WebSocket and Server Sent Events are not working at all and on Long Polling, 404 is returned.
Network call logs are:
I have added all possible routes for ocelot. I am out of ideas on what to do now.
I have observed that the connectionId returned in response to the negotiate call is not used to connect to hub and instead the connectionToken value is used as the value for "id" query string parameter.
Specifications
Beta Was this translation helpful? Give feedback.
All reactions