Skip to content

Transcoding HTTP request fails if accept header is "*/* #435

@the-destro

Description

@the-destro

Describe the bug
When exposing an endpoint via transcoding the accept header seems to require "application/json". This makes it a challenge when you are, say, adding a health check route and you don't have control over what the service sends as a request header.

To Reproduce

a minimal service definition

message HealthCheckRequest {
}

message HealthCheckResponse {
}

service Health {
  rpc Check(HealthCheckRequest) returns (HealthCheckResponse){
    option (google.api.http) = {
      get: "/_health"
    };
  }
}
2025-09-08T15:25:42.607 [error] ** (GRPC.Server.Adapters.ReportException) Exception raised while handling /_health:
** (GRPC.RPCError) Message is malformed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions