Skip to content

Blazor Interactive Server Deployed on ACA delivers 404 on websockets #60981

@rbuergi

Description

@rbuergi

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I have a blazor interactive server which is integrated in Aspire 9.1. I deploy it to Azure Container Apps.

In the deployed setup, when reloading the page a number of times, it randomly fails about every other time with

blazor.web.js:1  [2025-03-18T00:38:15.068Z] Error: Failed to start the transport 'WebSockets': Error: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.

running it locally on docker, I don't observe this behavior. Is this a known problem? Is this ACA specific? Anything I can do to make this go away?

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions