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

Show grpc-message content even if unexpected HTTP Status codes or Content Types are set #205

Open
Blackclaws opened this issue Nov 16, 2022 · 0 comments

Comments

@Blackclaws
Copy link

Some server software, such as AspNetCore when running authorization middleware will set the HTTP Status Code to 401 instead of 200. When you have a server serving multiple different api types always coercing it into GRPC format isn't that easy.

We do set grpc-status and grpc-message headers and the grpc status codes and message are read correctly by most software.

grpcui should display the grpc-message that details the reason authentication failed instead of displaying an error that other content was unexpected (having that additional information doesn't hurt though).

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

1 participant