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.

Server frequently loses Azure SignalR connection [Azure SignalR Service is not connected yet Error]

See original GitHub issue

My ASP.NET Web API (target framework: .NET Framework 4.6.2) project frequently loses connection with Azure SignalR service (free tier). I have followed the example as shown in aspnet ‘chatroom’ example.

My client application is based on Angular JS. Messages are being sent to the clients but after a few hours, the server connection with Azure SignalR service is lost and is not established again.

As far as I understand from the MS Azure SignalR Internals documentation:

If a server connection is disconnected for network issue,

  • the server connection starts reconnecting automatically.

The following error is returned back in response:

Azure SignalR Service is not connected yet, please try again later

50b742fb-fbbd-491c-b8ae-2957e3e2f9c5 png

However, this does not seem to be happening i.e. server connection with Azure SignalR service is not established again.

5e878734-6613-49cc-9b2a-f5ff63bd6686 png

nuget packages:

  • Microsoft.AspNet.SignalR v2.4.0
  • Microsoft.AspNet.SignalR.Core v2.4.0
  • Microsoft.AspNet.SignalR.SystemWeb v2.4.0
  • Microsoft.Azure.SignalR.AspNet v1.0.0-preview1-10317
  • Microsoft.Azure.SignalR.Protocols v1.0.6

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
vicancycommented, Feb 26, 2019

The latest v1.0.0-preview1-10330 version of ASP.NET should fix the issue.

2reactions
vicancycommented, Feb 25, 2019

We’ve identified an issue for ASP.NET that SDK does not reconnect after disconnect. There is a nightly build that contains a fix to this problem: install-package Microsoft.Azure.SignalR.AspNet -Version 1.0.0-preview1-10325 -Prerelease -Source https://www.myget.org/F/azure-signalr-dev/api/v3/index.json

The fix is planned to be released this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting guide for Azure SignalR Service
This error is reported when there's no server connection to Azure SignalR Service connected. Troubleshooting guide. Enable server-side trace to ...
Read more >
Azure SignalR Service is not connected yet, please try ...
I got this error when using aad connection with a service principal. I forgot to grant SignalR Service Owner role to the service...
Read more >
Replace Signal R with Azure Signal R #9976
Angular .NET Core 9.3 Looks like I cant connect to Azure Signal R via the web host. Still trying to connect to localhost?...
Read more >
SignalR deep dive: Key concepts, use cases, and limitations
When using ASP.NET Core SignalR, the client connects directly to the server. Meanwhile, with Azure SignalR Service, a negotiate endpoint is ...
Read more >
Signalr javascript client example. To avoid using sticky sess
Signalr javascript client example. To avoid using sticky sessions, the client needs to skip negotiation but is restricted to only using websockets without ......
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