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
Using ReflectionService from @grpc/reflection, and a .proto with a message "reserved 2", I get this error on grpcurl and also from python's grpcio-reflection:
Failed to list methods for service "testservice.TestService": proto: message "testservice.Test" reserved ranges has invalid range: 2 to 1
No issue with grpcurl 1.8.7, but present on 1.8.9. No issues with grpc client using grpc-js-reflection-client
Reproduction steps
server.js:
const packageDefinition = protoLoader.loadSync(PROTO_PATH, {
keepCase: true,
longs: String,
enums: String,
defaults: false,
oneofs: false,
});
const testService = grpc.loadPackageDefinition(packageDefinition);
// Define the server
const server = new grpc.Server();
const reflection = new ReflectionService(packageDefinition);
reflection.addToServer(server);
grpcurl -plaintext localhost:8080 list testservice.TestService
Failed to list methods for service "testservice.TestService": proto: message "testservice.Test" reserved ranges has invalid range: 2 to 1`
Problem description
Using ReflectionService from @grpc/reflection, and a .proto with a message "reserved 2", I get this error on grpcurl and also from python's grpcio-reflection:
Failed to list methods for service "testservice.TestService": proto: message "testservice.Test" reserved ranges has invalid range: 2 to 1
No issue with grpcurl 1.8.7, but present on 1.8.9. No issues with grpc client using
grpc-js-reflection-client
Reproduction steps
server.js:
test.proto:
Environment
The text was updated successfully, but these errors were encountered: