-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Custom message is not shown on status details #529
Comments
I'm sorry for the late reply. |
@terashi58 |
@ktr0731 I confirmed the custom message in status details can be displayed now.
I updated the minimum example (https://github.com/terashi58/grpc-details-test). You can reproduce with the same way above but running I guess this is a side-effect of the #530. If it is better to manage in separate issues, I'll file another one. |
@terashi58 |
Hi, @terashi58. |
Thank you @ktr0731! I believe the latest build is improvement without regression from the last release. |
Thank you for the feedback! We'll fix the root issue as soon as possible if you figured out the details 🙇 |
I found that a message in the details is not shown if the message is not defined in a file which contains rpc definitions nor which is imported from files containing rpc definitions. |
Describe the bug
When a gRPC server returns error with own custom message in status details, evans doesn't display the message even with --enrich option.
If the message type is ptype (e.g google.protobuf.Timestamp), is it shown. Message types built in the evans binary could be handled.
It happens with both giving proto files or using reflection.
I've confirmed the custom message is provided as details using another tool https://github.com/fullstorydev/grpcurl.
To reproduce
Here is a Dockerfile to reproduce it: https://github.com/terashi58/grpc-details-test
Summary of the sample codes:
Here is the proto definition:
And the RPC implementation:
The rpc returns error with the
custom sample.Extension
andgoogle.protobuf.Timestamp
as status details.evans shows the Timestamp only in the details section.
Expected behavior
The custom message is also shown in the details section:
Environment
protoc
version: 3.20.0protoc
plugin version (if you are using):Additional context
You can run the sample server in the docker image by
docker run -p 50051:50051 --rm grpc-details-test ./bin/server
and test from a local evans.The text was updated successfully, but these errors were encountered: