Try:

import "google.golang.org/grpc/metadata"
...
...
...
if md, ok := metadata.FromContext(ctx); ok {
value := md["whatever"] 
}


On Tuesday, January 10, 2017 at 3:52:52 AM UTC+1, [email protected] wrote:
>
>
> I have a Go client and a Python server and I am unable to find metadata in 
> the context on the server side
>
> Client:
> md := metadata.Pairs("foo", "val")
> ctx := metadata.NewContext(context.Background(), md)
>         client.MyCall(ctx, &message)
>
> Server:
>        context.invocation_metadata()   # all I get from this 
> is (('user-agent', 'grpc-go/1.0'),)
>
>
> Is there a way to do this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/3346b94c-9e24-4959-b8af-99ddaeed1f80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to