Skip to content

GRPC StatusRuntimeException metadata on client side is empty #45248

Open
@ashalak-kaseya

Description

Describe the bug

During GRPC communication on server's side I throw StatusRuntimeException with some custom trailers, meaning metadata with some special keys with values.

After triggering the request I see that the client's side "onClose" trailers are empty, but headers contain my data instead.
So without custom interceptor for GRPC client below I cannot get my data from StatusRuntimeException's trailers (using exc.getTrailers()):
Image

Expected behavior

On client's side trailers inside StatusRuntimeException have to contain trailers are added on server side.

Actual behavior

On client's side trailers inside StatusRuntimeException are empty, but instead that headers contain trailers are added on server side.

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

21

Quarkus version or git rev

3.12.3

Build tool (ie. output of mvnw --version or gradlew --version)

gradle 8.11

Additional information

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions