1

When we are trying to connect the Azure SignalR (serverless mode) from the Docker we are getting the below error -

"Failed to connect to will retry after the back off period. Error detail: Unable to connect to the remote server. The remote certificate is invalid because of errors in the certificate chain"

We have used the below code snippet in startup.cs

services.AddSignalR(options =>
{
    options.EnableDetailedErrors= true;
}).AddAzureSignalR(options =>
{
    options.ConnectionString = AppSettings.SignalREndPoint;
});

app.UseEndpoints(endpoints =>
{
    endpoints.MapControllers();
    endpoints.MapHub<NotificationHub>("/notify");
});

Please help with the solution if anyone has faced the same problem. It's been a blocker for some time now

Azure SignalR should be connected and accessible via Docker.

Kiril1512
  • 3,231
  • 3
  • 16
  • 41
  • Whether it is working from Visual studio ? – guru Aug 22 '23 at 11:16
  • Yes, the code is working fine in local environment. we are getting error only when run it from docker – mageshwaran ramanathan Aug 22 '23 at 11:21
  • `Serverless mode works with Azure Functions to provide real time messaging capability. Clients work with SignalR Service bindings for Azure Functions, called function binding, to send messages as an output binding.` So why not Azure Function? https://learn.microsoft.com/en-us/azure/azure-signalr/concept-service-mode#serverless-mode – Tiny Wang Aug 23 '23 at 06:43
  • 1
    Hi @TinyWang, sorry my bad it's a deafult mode SignalR that we are using. – mageshwaran ramanathan Aug 23 '23 at 16:49
  • ok then I don't have any other ideas. have you tried to published to azure web app to see if the issue is caused by docker? – Tiny Wang Aug 24 '23 at 02:30
  • We have tested in App Service and local - both working fine we are facing challenge in docker alone – mageshwaran ramanathan Aug 25 '23 at 05:03

0 Answers0