Skip to content

SignalR clients cannot connect to SignalR server. Gets "SignalR Service is now in 'Default' service mode. Current mode works as a proxy that routes client traffic to the connected app servers. However app servers are not connected." #14979

@mibjg

Description

@mibjg

Describe the bug

When we connect to SignalR through our app-service (We have exposed an endpoint with the SignalR Management SDK, which returns a url and accessToken to the Azure SignalR service)

   [HttpPost("{hub}/negotiate")]
    public ActionResult Index(string hub)
    {
        return new JsonResult(new Dictionary<string, string>()
        {
            {"url", _serviceManager.GetClientEndpoint(hub)},
            {"accessToken", _serviceManager.GenerateClientAccessToken(hub, User.ToString())}
        });
    }

This seems to work Ok, when we connect the client through here, the client receives the token, and calls the negotiate endpoint on the Azure SignalR service.

However when the client tries to switch to Websockets, we get the following message:

SignalR Service is now in 'Default' service mode. Current mode works as a proxy that routes client traffic to the connected app servers. However app servers are not connected

This is even though we can see that servers are connected to the SignalR service

image

The client is an Angular 7 app using the "@microsoft/signalr": "^3.0.0" npm package

Expected behavior

Expected the client to connect to the SignalR server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-signalrIncludes: SignalR clients and servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions