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.

Support for extracting response headers for unary calls

See original GitHub issue

Is your feature request related to a problem? Please describe. We have a use-case where we want to simulate a unary call which returns context in its response headers which is required to be passed to subsequent unary calls. Based on our investigation, response Headers are not being captured in GrpcCallAction.ContinuingListener

    override def onHeaders(headers: Metadata): Unit = {}

And hence it would not be possible to extract that using this library without a code change.

Describe the solution you’d like A utility method exposed in GrpcCheckSupport which will allow extracting the desired response header

Describe alternatives you’ve considered No known alternatives found.

Additional context NA

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
phiSgrcommented, Nov 5, 2022

A new release should be available this weekend.

0reactions
6haratcommented, Nov 18, 2022

This will require change in branching/tagging strategy as well for this repo.

@phiSgr In that case, I am assuming the library won’t be officially providing support for previous versions atleast for the time being now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to define response headers for unary rpc - Stack Overflow
In Go, I want to set some response headers from inside my rpc handler implementation. Specifically, I want to set some headers related...
Read more >
grpc-status is not returned when making unary call #1050
I found that when grpc server throws GrpcStatusException, grpc-web always gets error saying incomplete response if making unary calls.
Read more >
Response Header - an overview | ScienceDirect Topics
Most actionable response headers are generated by the Web server itself. These include instructions for the client to cache the content (or not),...
Read more >
Chapter 4, gRPC: Under the Hood - O'Reilly
Headers passed in gRPC communication are categorized into two types: call-definition headers and custom metadata. Call-definition headers are predefined headers ...
Read more >
Customizing your gateway | gRPC-Gateway - GitHub Pages
You can have Elasticsearch-style ?pretty support in your gateway's endpoints as follows: ... Mapping from HTTP request headers to gRPC client metadata.
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