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

Additional headers -H works with grpcurl but not grpcui #207

Open
zchenyu opened this issue Nov 28, 2022 · 3 comments
Open

Additional headers -H works with grpcurl but not grpcui #207

zchenyu opened this issue Nov 28, 2022 · 3 comments

Comments

@zchenyu
Copy link

zchenyu commented Nov 28, 2022

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
@jamesr66a
Copy link

Also pass the headers for --reflect-headers

@zchenyu
Copy link
Author

zchenyu commented Nov 29, 2022

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.

@alandoherty
Copy link

This gotcha'd me also, the docs indicate that -H will include headers in reflection requests but this is not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants