Skip to content

Consider increasing SignalR log level if message size exceeds max #26849

Open
@pranavkm

Description

@pranavkm

In Blazor Server, when a JSInterop response is larger than the SignalR payload size, no information is available by default that indicates the invocation failed. You have to turn up the SignalR logs up to to Debug to see the actual error:

dbug: Microsoft.AspNetCore.SignalR.HubConnectionHandler[2]
      Error when processing requests.
      System.IO.InvalidDataException: The maximum message size of 32768B was exceeded. The message size can be configured in AddHubOptions.

SignalR calls Hub.OnDisconnectedAsync with this exception but Blazor does not do anything with the exception. Perhaps logging the exception with a higher log level would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Blazor ♥ SignalRThis issue is related to the experience of Signal R and Blazor working togetherPriority:2Work that is important, but not critical for the releaseaffected-mediumThis issue impacts approximately half of our customersarea-signalrIncludes: SignalR clients and serverscost: XSWill take up to half a day to completeenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-jsinteropThis issue is related to JSInterop in Blazorseverity-majorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions