gRPC url for service includes protobuf package name - how to change that?

38 views
Skip to first unread message

david...@xnor.ai

unread,
May 1, 2019, 5:45:22 PM5/1/19
to grpc.io
[Using C++ bindings.]

I was surprised to learn the hard way today that the gRPC URL includes the "full service name" which is the protobuf package + the service name.  I was expecting it only to be the service name. 

This bit me when I changed the package name in the proto file the server consumed but didn't change it in the client and now the client couldn't talk to it.

I was under the wrong impression that proto package names were only for the language bindings and didn't go over the wire.

So two important questions:

1) How can I change this?  Is there something I can tell ServerBuilder, for example that will fix the URL and sever it from the tie to the proto package name?

2) Where is this documented?

Thanks! -- David Bakin

Yang Gao

unread,
May 8, 2019, 1:42:04 PM5/8/19
to grpc.io
This is documented in https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md 
I do not think there is an API to change it.
Reply all
Reply to author
Forward
0 new messages