vardius/go-api-boilerplate

rpc error: code = Unimplemented desc = unknown service

mar1n3r0 opened this issue · 3 comments

Looking for advice... I am getting this when trying to make a gRPC call to a new service cloned from an existing one.
Wondering how could this be debugged as readiness and health checks are reporting all ok.

As far as I understand the gRPC server hasn't registered the service but no errors were reported at the time of starting.

Suspecting specifically this part:

userproto.RegisterUserServiceServer(adapter.server, adapter.userServer)

Curious to know how can we check that it was successfully registered.

If the service is added to the grpcConnectionMap of a dependent service the output is:
gRPC connection is not serving

It makes me think that there is a network issue on my side since the internal readiness probe works.

P.S. The code generated in pb.go is identical and complete.

@mar1n3r0 what was the issue ? might help other ppl struggling with the same thing

@vardius Forgot to add the connection to the init function:

thanks for sharing !