Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRPC StatusRuntimeException metadata on client side is empty #45248

Open
ashalak-kaseya opened this issue Dec 22, 2024 · 1 comment
Open

GRPC StatusRuntimeException metadata on client side is empty #45248

ashalak-kaseya opened this issue Dec 22, 2024 · 1 comment
Labels
area/grpc gRPC kind/bug Something isn't working

Comments

@ashalak-kaseya
Copy link

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

@ashalak-kaseya ashalak-kaseya added the kind/bug Something isn't working label Dec 22, 2024
@quarkus-bot quarkus-bot bot added the area/grpc gRPC label Dec 22, 2024
Copy link

quarkus-bot bot commented Dec 22, 2024

/cc @alesj (grpc), @cescoffier (grpc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/grpc gRPC kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant