You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a server with two services: Service_A and Service_B. When I use reflection I can only see Service_A. I can see both services if I manually use the .proto files. Any idea what I'm doing wrong?
Using Wombat_v0.4.0_Linux_x86_64.tar.gz
Thanks
server.cpp:
#include <grpcpp/grpcpp.h>
#include <string>
#include "service_a.grpc.pb.h"
#include "service_b.grpc.pb.h"
using grpc::Server;
using grpc::ServerBuilder;
using grpc::ServerContext;
using grpc::Status;
using service_a::Service_A;
using service_b::Service_B;
class ServiceAImplementation final : public Service_A::Service {};
class ServiceBImplementation final : public Service_B::Service {};
void Run() {
std::string address{"0.0.0.0:5000"};
ServiceAImplementation service_a;
ServiceBImplementation service_b;
ServerBuilder builder;
builder.AddListeningPort(address, grpc::InsecureServerCredentials());
builder.RegisterService(&service_a);
builder.RegisterService(&service_b);
std::unique_ptr<Server> server(builder.BuildAndStart());
std::cout << "server listening on port: " << address << std::endl;
server->Wait();
}
int main(int argc, char** argv) {
Run();
return 0;
}
$ grpc-client-cli localhost:5000
? Choose a service: [Use arrows to move, enter to select, type to filter]
→ grpc.reflection.v1alpha.ServerReflection
service_a.Service_A
service_b.Service_B
The text was updated successfully, but these errors were encountered:
I seem to suffer from the same issue, using V0.5.0. grpc_cli ls shows all services, while wombat only shows one of them. I hope the following screenshot is not too much obfuscated :-)
Can we enable "logging" or such for wombat to get to the culprit of it?
Hi all,
I have a server with two services: Service_A and Service_B. When I use reflection I can only see Service_A. I can see both services if I manually use the .proto files. Any idea what I'm doing wrong?
Using Wombat_v0.4.0_Linux_x86_64.tar.gz
Thanks
server.cpp:
service_b.proto:
service_a.proto:
Working with
grpc-client-cli
:The text was updated successfully, but these errors were encountered: