SignalR failed in production after re-authentication

Anya Mirch 1 Reputation point
2021-12-10T07:06:50.977+00:00

I use SignalR for online chat on my website. When I start my app in local enviroment everything works, but in production and staging enviroment everything works good before I try to re-authenticate - in this case my chat fails with the next issues in console:
156565-screenshot-7.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,280 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,928 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 22,511 Reputation points Microsoft Employee
    2021-12-16T11:58:31.8+00:00

    @Anya Mirch , Azure SignalR Service exposes resource logs, you can also enable logs for service side.
    To isolate the issue, you may enable server/client side logs to capture failures.
    You may take look at the resource logs to fetch more details, aids (in encountering connection unexpected growing or dropping situation).

    Typical issues are often about connections, unexpected quantity changes, connections reach connection limits and authorization failure. So, kindly review these settings:

    -unexpected-connection-number-changes

    The default ConnectionTimeout(110 secs), DisconnectTimeout (30 secs), and KeepAlive(10 secs) values are appropriate for most scenarios but can be changed if your environment has special needs.
    https://github.com/Azure/azure-signalr/blob/dev/docs/run-asp-net-core.md#3-configure-service-options