question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SignalR, No Connection with that ID

See original GitHub issue

I have an asp.net core app that uses SignalR to report metrics that are visualized in the browser. It has been working fine for several weeks, but today I noticed that SignalR fails to connect very often and even when it connects, it disconnect shortly after. I’m using LongPolling and I can see in the network logs of Chrome that the first request to “negotiate” is always successful.

{"connectionId":"Vg4Mieg0ya3aD17-f8kMxw","availableTransports":[{"transport":"LongPolling","transferFormats":["Text","Binary"]}]}

but the second one which is a POST to “notify” is not (49 out of 50 times) and it responds with 404 Not found.

No Connection with that ID

I sometimes get the following as well.

{"error":"Handshake was canceled."}

The app works flawlessly when hosted locally (using localhost). It only happens when the app is hosted (IT/FT/…) in Azure as a Web App Service and all the resources of the application are downloaded successfully. I have the above issues only for SignalR requests from browser and logs on the server side don’t show anything wrong. Target framework: .NET Core 2.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
analogrelaycommented, Jul 22, 2019

@mathiassiig I’d strongly advise you to create a new issue with your specific scenario. Since this is a closed issue, it doesn’t come up in our regular tracking so you’re relying on David and I alone paying attention to our GitHub notifications (which we generally do, but can easily get behind on 😉).

0reactions
zeroregardcommented, Jul 22, 2019

It’s an Azure Web App running ASP.NET Core with the newest version of SignalR. I increased the timeout intervals, but it didn’t seem to do a difference. It happens randomly, although there seems to be periods where it happens several times in a row.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Signalr-Redis "No Connection with that ID" - asp.net
SignalR is a protocol and part of that protocol means that a connection ID will be created on the server during "negotiate".
Read more >
Connection ID required SignalR Asp.net core Web api
i have created a Asp.net Core web api for the purpose of SignalR. my hub is defined like this. Copy. public class ChatHub...
Read more >
Managing SignalR ConnectionIds (or why you shouldn't)
The important thing to note with connections, and more importantly connection IDs, is that they are temporarily identifiers for a connection ...
Read more >
SignalR Client Internals : Trouble Shooting (Don't use ...
A Sucessful Signalr Client Connection to Server Hub ... Do not use relative URLs as the asp.net core documentation shows, it makes no...
Read more >
Network Load Balancer stickiness seems to fail sometimes
We have a SignalR javascript client connecting to .net core hub, hosted in AWS. ... with error 'Error: No Connection with that ID:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found