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
we're trying to use the "Betterproto" library with a grpc server based on grpclib. However the generated routes in the stub file of betterproto doesn't match the routes in the service from grpclib, which results in a very vacuous error message, so the method call will fail:
We're generating the proto files using the following command: python3 -m grpc_tools.protoc -I grpc-interface-definitions/proto/ --python_betterproto_out=lib/grpc-interface_definitions grpc-interface-definitions/proto/*
The vacuous error message we got from betterproto is the following one:
Debugging the server shows that the request is canceled due to a not found method name. It sends a Status.UNIMPLEMENTED error back to the client, which seems to have an issue parsing these early errors. I think this error message might be related to a bug in the underlying grpclib and isn't directly associated to betterproto. However I will mention it here if anybody is searching for this error message like me a few hours ago ;)
The text was updated successfully, but these errors were encountered:
SoerenBusse
changed the title
Match method routes with grpclib server
mismatch of method route names with grpclib server
Nov 17, 2020
SoerenBusse
changed the title
mismatch of method route names with grpclib server
Mismatch of method route names with grpclib server
Nov 17, 2020
I came across the same issue when using the Node.js gRPC library together with betterproto. Unfortunately, I haven't found any specification for route names either.
You might be able to work around this problem by using package names in your protobuf source files.
Hey there,
we're trying to use the "Betterproto" library with a grpc server based on grpclib. However the generated routes in the stub file of betterproto doesn't match the routes in the service from grpclib, which results in a very vacuous error message, so the method call will fail:
Betterproto:
grpclib:
Why does betterproto generate different route-names than grpclib? Is there a specification for naming the route-names?
I think the error is comming from here:
https://github.com/danielgtaylor/python-betterproto/blob/master/src/betterproto/plugin/models.py#L641
Is there a check missing which replaces a dot with an empty string?
We're generating the proto files using the following command:
python3 -m grpc_tools.protoc -I grpc-interface-definitions/proto/ --python_betterproto_out=lib/grpc-interface_definitions grpc-interface-definitions/proto/*
The vacuous error message we got from betterproto is the following one:
Debugging the server shows that the request is canceled due to a not found method name. It sends a
Status.UNIMPLEMENTED
error back to the client, which seems to have an issue parsing these early errors. I think this error message might be related to a bug in the underlying grpclib and isn't directly associated to betterproto. However I will mention it here if anybody is searching for this error message like me a few hours ago ;)The text was updated successfully, but these errors were encountered: