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

Reflection is not working for grpc.health.v1.Health service when using grpcurl. #36665

Open
ajithcodesit opened this issue May 18, 2024 · 0 comments

Comments

@ajithcodesit
Copy link

ajithcodesit commented May 18, 2024

What version of gRPC and what language are you using?

gRPC version v1.61.1 and v1.64.0 with C++

What operating system (Linux, Windows,...) and version?

Linux Ubuntu 20.04.6 LTS x86_64

What runtime / compiler are you using (e.g. python version or version of gcc)

gcc version 9.4.0

What did you do?

  • Built the helloworld examples for gRPC in C++ located in ~/grpc/examples/cpp/helloworld.
  • Ran the greeter callback server example with ./greeter_callback_server
  • Ran the grpcurl command to describe the health service using grpcurl -plaintext 0.0.0.0:50051 describe grpc.health.v1.Health

What did you expect to see?

When I ran the above command I expected to see the following result

grpc.health.v1.Health is a service:
service Health {
  rpc Check( grpc.health.v1.HealthCheckRequest) returns ( grpc.health.v1.HealthCheckResponse);
  rpc Watch( grpc.health.v1.HealthCheckRequest) returns (stream  grpc.health.v1.HealthCheckResponse);
}

What did you see instead?

The command fails with the following result

Failed to resolve symbol "grpc.health.v1.Health": Symbol not found: grpc.health.v1.Health

Anything else we should know about your project / environment?

I have tried to use Postman as well, but if the health service is enabled using grpc::EnableDefaultHealthCheckService(true) it fails to get reflection information for it as well. If it is disabled both grpcurl and Postman is able to get reflection for all the other services. Only the reflection for the health service is not working. The reflection for all the other services are working.

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

No branches or pull requests

3 participants