SignalR is not delivering message

zigzagcloud 0 Reputation points
2025-02-14T08:54:36.04+00:00

SignalR is not delivering message. The service seems stop working from yesterday.

I setup System Error Alert on SignalR and it emails me the system error alert when I sent a message to the signalR service and not delivering to the expected clients

This is the alert rule id

[https://portal.azure.com/#resource/subscriptions/9d952a63-5dd8-4c4f-85e1-1023a5590d9a/resourceGroups/POC/providers/microsoft.insights/metricAlerts/SignalR System Error](https://portal.azure.com/#resource/subscriptions/9d952a63-5dd8-4c4f-85e1-1023a5590d9a/resourceGroups/POC/providers/microsoft.insights/metricAlerts/SignalR%20System%20Error"https://portal.azure.com/#resource/subscriptions/9d952a63-5dd8-4c4f-85e1-1023a5590d9a/resourceGroups/POC/providers/microsoft.insights/metricAlerts/SignalR System Error")
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
157 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 3,825 Reputation points Microsoft External Staff
    2025-02-18T17:13:27.15+00:00

    Hi @zigzagcloud
    Resolving Issues Relating to Message Delivery with Azure SignalR Service

    Inspect SignalR Logs Through Azure Monitor

    Navigate to Azure Monitor and then go to Logs and search SignalRServiceDiagnosticLogs.

    Look for failed connections and authentication logs alongside dropped messages.

    Keep track of the Azure SignalR logs

    SignalR has limits for connection per account, messages sent, and requests made at the same time.

    Check the SignalR service and go to Scale to check the usage.

    Make sure that the connection string of the application is in alignment with the Azure SignalR instance.

    When using Managed Identity, permissions in Azure Role Based Access Control (RBAC) should be validated.

    Azure SignalR Explorer can now be acquired in Visual Studio code.

    Inspect clients that are connected, hubs that are active, and messages that are sent.

    Confirm if tokens are valid and check if they are expired when you are relying on Azure AD / JWT authentication.

    Make sure that CORS policies permit SignalR connections from different origins.

    Authenticate SignalR Azure with safeguards in place

    Use JavaScript to carry out a simple initial test:Resolving Issues Relating to Message Delivery with Azure SignalR Service

    connection = new signalR.HubConnectionBuilder()
        .withUrl("https://<your-signalr-endpoint>/chatHub")
        .build();
    connection.start().then(() => console.log("Connected!"));
    connection.on("ReceiveMessage", (message) => console.log(message));
    

    troubleshooting Azure SignalR Service issues. https://learn.microsoft.com/en-us/answers/questions/1691669/azure-signalr-service-(serverless)-stopped-working
    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.