Failed to connect to '(Primary)https://<name>.service.signalr.net', will retry after the back off period.
See original GitHub issueDescribe the bug
After a full day of successful operation, two of my three environments started throwing the following exception in multitude with my SignalR instance:
Failed to connect to '(Primary)https://<name>.service.signalr.net', will retry after the back off period. Error detail: Unable to connect to the remote server. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond..
To Reproduce
Not sure if I could if I wanted to. It just started happening and would not stop.
Some notes:
- I was able to access
https://<name>.service.signalr.net
from my local environment without issue. - Creating a new SignalR instance and pointing my connection string to that instance worked. Maybe a DNS issue?
Exceptions (if any)
Message:
Unable to connect to the remote server. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Further technical details
- Your Azure SignalR SDK version 1.4.0
- Your Server ASPNETCORE version or Assembly version of
Microsoft.AspNetCore.SignalR
net6.0 - Your SignalR Client SDK version 6.0.7
Issue Analytics
- State:
- Created a year ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Azure SignalR: Failed to connect to '(Primary)https://<
Failed to connect to '(Primary)https://<name>.service.signalr.net', will retry after the back off period. Error detail: Unable to connect to ...
Read more >Azure Signalr Service Connection issue
Actual : Failed to connect to the service, will retry after the back off period. Error detail: Unable to connect to the remote...
Read more >Azure SignalR Service - Microsoft Q&A
Azure SignalR: Failed to connect to '(Primary)https://<name>.service.signalr.net', will retry after the back off period. Error detail: Unable ...
Read more >Azure SignalR Service in .net core app deployed ...
The application works fine when I try to run it on localhost but something seems off when I deploy it as Kubernetes service...
Read more >How to Implement SignalR Automatic Reconnect with ...
We can see that the next attempt is made after 10 seconds and by that time, our server application is back online and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
looks like there is a bug when reading from config… try using
Azure:SignalR:ApplicationName:
I mean from Azure SignalR’s perspective of view, your production client traffic might be routed to your staging hub server. You can consider Azure SignalR as a proxy that routes messages from the client to your multiple server instances.
This is a nice catch, @Jialin shall we consider applying the Environment variable as the ApplicationName for Blazor apps (but sounds a breaking change), or maybe add some documentation for such a scenario?