Fail to inspect custom `gRPC` server
cmgsj opened this issue · comments
Listing available services works correctly.
$ grpcurl -plaintext localhost:9090 list
demo.v1.DemoService
grpc.health.v1.Health
grpc.reflection.v1.ServerReflection
grpc.reflection.v1alpha.ServerReflection
However, describing a "custom" service fails, while the rest of the grpc.*
services do not.
$ grpcurl -plaintext localhost:9090 describe demo.v1.DemoService
Failed to resolve symbol "demo.v1.DemoService": proto: invalid syntax: "<unknown:0>"
Is this a know issue?
Should I register only either v1
or v1alpha
reflection services?
Related: fullstorydev/grpcui#279
See #423. The issue is twofold:
- Your server is written in Go, and is exhibiting these issues:
- The above issues are triggered by one or more of the files in the schema you are trying to download use the wrong import path when importing a dependency. By "wrong", I mean they are using a path different than the one the file was actually compiled with (more details can be found here).
See #423. The issue is twofold:
Your server is written in Go, and is exhibiting these issues:
The above issues are triggered by one or more of the files in the schema you are trying to download use the wrong import path when importing a dependency. By "wrong", I mean they are using a path different than the one the file was actually compiled with (more details can be found here).
@jhump Thank you for the quick response 🙏
I fixed the import paths in my proto
files based on the docs you referenced, and everything is now working as expected.
I will close this non-issue.