Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to inspect custom gRPC server #432

Closed
cmgsj opened this issue Nov 16, 2023 · 2 comments
Closed

Fail to inspect custom gRPC server #432

cmgsj opened this issue Nov 16, 2023 · 2 comments

Comments

@cmgsj
Copy link

cmgsj commented Nov 16, 2023

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

@jhump
Copy link
Contributor

jhump commented Nov 16, 2023

See #423. The issue is twofold:

  1. Your server is written in Go, and is exhibiting these issues:
  2. 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).

@cmgsj
Copy link
Author

cmgsj commented Nov 16, 2023

See #423. The issue is twofold:

  1. Your server is written in Go, and is exhibiting these issues:

  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants