grpcui
grpcui copied to clipboard
Additional headers -H works with grpcurl but not grpcui
Is there some difference between how headers are passed in grpcui compared to grpcurl?
Using grpcurl:
% grpcurl -plaintext -H "my-token:$MY_TOKEN" <ip>:30080 list
gateway.Gateway
grpc.reflection.v1alpha.ServerReflection
Using grpcui:
% grpcui -plaintext -H "my-token:$MY_TOKEN" <ip>:30080
Failed to compute set of methods to expose: rpc error: code = Unauthenticated desc = No auth token present
Also pass the headers for --reflect-headers
That did the trick! Thank you kind stranger!
Not sure why it's needed though. The docs for -H say: "These headers will also be included in reflection requests to a server." /shrug Will leave this issue open for clarification.
This gotcha'd me also, the docs indicate that -H will include headers in reflection requests but this is not the case.