question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

armeria-grpc does not support gRPC Metadata

See original GitHub issue

Hi, Now trailers isn’t passed to the client, and hope to work in the same way as the official grpc-java.

new GreeterGrpc.GreeterImplBase() {
      @Override
      public void sayHello(HelloRequest request, StreamObserver<HelloReply> responseObserver) {
        Metadata trailers = new Metadata();
        trailers.put(DEBUG_INFO_TRAILER_KEY, DEBUG_INFO);
        responseObserver.onError(Status.INTERNAL.withDescription(DEBUG_DESC).asRuntimeException(trailers));
      }
    }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
anuraagacommented, May 24, 2019

Oh oops - I didn’t look at the code close enough this is for official support for Metadata. I’m currently working on some tricky issues for it but hope we can support it soon 😃

0reactions
anuraagacommented, May 29, 2019

Fixed by #1790

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running a gRPC service — Armeria documentation
GrpcService supports gRPC, gRPC-Web and Protobuf-JSON by default. If you don't want your GrpcService support all those formats, specify the formats you want ......
Read more >
Is there any way to use rich error model for grpc service in ...
I tried to use Metadata but it is only possible when used with responseObserver.onError method not exceptionMapping of GrpcService.Builder.
Read more >
gRPC over HTTP2
Custom-Metadata is an arbitrary set of key-value pairs defined by the ... Note that HTTP2 does not allow arbitrary octet sequences for header...
Read more >
Authentication - gRPC
You can use our supported mechanisms - SSL/TLS with or without Google ... will not let you send credentials on an unencrypted channel....
Read more >
gRPC Connections | Edge Stack
However, gRPC is built on HTTP/2 and most gRPC servers do not speak HTTP/1.x at all. Ambassador Edge Stack must tell its underlying...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found