-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unexpected response on /v2/example/errorwithdetails #1842
Comments
TIL we have a gulpfile in the depths of the examples 😆. Thanks for digging this up. I expect this is happening because the grpc-gateway server defined in https://github.com/grpc-ecosystem/grpc-gateway/tree/master/examples/internal/gateway doesn't have a way to understand the error details defined in the message returned from the gRPC server. It needs to import Would you like to contribute this fix and confirm it works? |
I am not sure if I can fix this but I hope to try. May I try this?
I understood too late about this. Let me do this. 😄 |
add missing errdetails import so that protojson can translate errdetails as google.protobuf.Any fix grpc-ecosystem#1842
* Fix broken example add missing errdetails import so that protojson can translate errdetails as google.protobuf.Any fix #1842 * Regenerated bazel files
🐛 Bug Report
When I run the example
/v2/example/errorwithdetails
, I got an unexpected message below.To Reproduce
Expected behavior
Response message below
grpc-gateway/examples/internal/server/a_bit_of_everything.go
Lines 310 to 320 in 865774a
Actual Behavior
Response message bellow with status code 500
Your Environment
Mac os Catalina v10.15.7
Docker version 19.03.13, build 4484c46d9d
Image golang:1.15
The text was updated successfully, but these errors were encountered: