Skip to content

SignalR Java client failing on 'Headers not implemented yet.' #62713

Description

@mtinnes

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The SignalR Java client is crashing when parsing Websocket messages containing a 'headers' section. Parsing of headers is not currently implemented in GsonHubProtocol.java, which is located here

The un-parseable payloads looks like this:

{
  "type" : 1,
  "target" : "Command",
  "headers" : {
    "traceId" : "0HNE2SNHO754E:00000001",
    "traceparent" : "00-e71ba9da7279d0683f29fc5054581a08-9518f7d2258253d7-01"
  },
  "arguments" : [ {
    "Name" : "getpackage",
    "Arg" : ""
  } ]
}

Seems if the payload contains 'headers', the Java client will crash.

This appears to be server-side and not related to any changes we made to our codebase.
My guess is that Microsoft has decided to add these headers automatically for tracing/debugging purposes.

We really need a way to disable these tracing headers as we have no way to update all our client apps in production.

Expected Behavior

SignalR websocket messages should not include 'headers', or have a method for disabling 'headers'. The SignalR Java client should not crash when receiving a websocket messages containing 'headers'.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

.NET 9

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-signalrIncludes: SignalR clients and serversbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions