aspnet / SignalR-samples

Samples for ASP.NET Core SignalR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to connect with SignalR with any available transports. Error 404 "No Connection with that ID"

mustafajavid opened this issue · comments

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.
SignalR  Hub request
Hub Call response

Even though the negotiate call is always successful.
Negotiate Response

WebSocket and Server Sent Events are not working at all and on Long Polling, 404 is returned.
Console logs

Network call logs are:
Network logs

I have added all possible routes for ocelot. I am out of ideas on what to do now.
SignalR Ocelot Routes

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

  • Ocelot Version: 15.0.6
  • @microsoft/signalr Version: 5.0.1
  • .Net Core: 3.1
  • Platform: Windows