grpc-cli return Received an error when querying services endpoint.
See original GitHub issuegrpc version 1.3.0
jdk 1.8
add ProtoReflectionService after my service
private NettyServerBuilder initConfigServer() {
Integer workers = Optional.fromNullable(providerSettingConfig.getIothreads()).or(0);
NettyServerBuilder builder = NettyServerBuilder
.forPort(registryConfig.getServicePort())
.bossEventLoopGroup(create(Constants.NETTY_BOSS_EVEN_LOOP_GROUP, 1))
.workerEventLoopGroup(create(Constants.NETTY_WORKER_EVEN_LOOP_GROUP, workers));
logger.debug("server:netty boss:{} worker:{}", 1, workers);
for (ServerServiceDefinition ssd : ssds) {
builder.addService(ssd);
}
builder.addService(ProtoReflectionService.newInstance());
return builder;
}
then run
./grpc_cli ls localhost:50053
return
Received an error when querying services endpoint.
io.grpc.examples.helloworld.HelloWorldServer is the same problem too
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
grpc-cli return Received an error when querying services endpoint.
grpc version 1.3.0. jdk 1.8. add ProtoReflectionService after my service private NettyServerBuilder initConfigServer() { Integer workers = Optional.
Read more >GRPC Core: gRPC Server Reflection Tutorial
gRPC Server Reflection provides information about publicly-accessible gRPC services on a server, and assists clients at runtime to construct RPC requests ...
Read more >gRPC: test/cpp/util/grpc_tool.cc - Fossies
gRPC CLI has very different performance " 76 "characteristics compared with ... 377 fprintf(stderr, "Received an error when querying services endpoint.
Read more >Troubleshooting Response Errors | Cloud Endpoints with gRPC
This page describes how to troubleshoot errors that you receive in a response from a request to your API. Upstream backend unavailable. If...
Read more >gRPC Server Reflection Tutorial
It is used by gRPC CLI, which can be used to introspect server protos and send/receive test RPCs. Enable Server Reflection. gRPC-go Server...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am also encountering a similar issue, with a trivial C++ server implementation. I can get a client to talk to the server, but I would like for grpc_cli to work as well.
One way to get a better error message is to set the GRPC_VERBOSITY environment variable:
@SeriousMa Are your failure details similar?
@minorhacks have the same issue as you, did you found any approach for this?