grpc-go icon indicating copy to clipboard operation
grpc-go copied to clipboard

grpc reflection error for import is not defined

Open ja7ad opened this issue 3 years ago • 0 comments

grpc reflection error for paginatedList.list.Response is not defined, but paginatedList.list.Response imported from another proto file.

What version of gRPC are you using?

google.golang.org/grpc v1.48.0

What version of Go are you using (go version)?

1.18.1

What operating system (Linux, Windows, …) and version?

Linux

What did you do?

I want use server reflection but got error on grpc client (kreya and postman)

What did you expect to see?

I want access to server rpc path for test service

What did you see instead?

{
  "kreyaVersion": "1.8.0",
  "platform": "Linux x86_64",
  "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15"
}

Google.Protobuf.Reflection.DescriptorValidationException: application.GetPaginatedApplicationsResponse.response: ".paginatedList.list.Response" is not defined.
   at Google.Protobuf.Reflection.DescriptorPool.LookupSymbol(String name, IDescriptor relativeTo)
   at Google.Protobuf.Reflection.FieldDescriptor.CrossLink()
   at Google.Protobuf.Reflection.MessageDescriptor.CrossLink()
   at Google.Protobuf.Reflection.FileDescriptor.CrossLink()
   at Google.Protobuf.Reflection.FileDescriptor.BuildFromByteStrings(IEnumerable`1 descriptorData, ExtensionRegistry registry)
   at Google.Protobuf.Reflection.FileDescriptor.BuildFromByteStrings(IEnumerable`1 descriptorData)
   at Kreya.Grpc.Core.Importer.ProtoRegistry.Add(Guid sourceId, IEnumerable`1 byteStrings)
   at Kreya.Grpc.Core.Importer.BaseGrpcImporter`1.Import(IImportStream`1 importStream, Boolean allowCache)
   at Kreya.Core.Importer.ImporterService.RunSingleImporter(ImportStream importStream, Boolean allowCache, IReadOnlyDictionary`2 operationsByInvoker)
   at Kreya.Core.Importer.ImporterService.RunImporter(Guid id, Boolean allowCache)
   at SpiderEye.Bridge.ApiMethod.InvokeAsync(Object instance, Object parameter)
   at SpiderEye.Bridge.WebviewBridge.InvokeWithDependencyInjection(IDependencyInjectionApiMethod apiMethod, Object parameters)
   at SpiderEye.Bridge.WebviewBridge.InvokeWithDependencyInjection(IDependencyInjectionApiMethod apiMethod, Object parameters)
   at SpiderEye.Bridge.WebviewBridge.ResolveCall(String id, String parameters)

ja7ad avatar Aug 09 '22 08:08 ja7ad

The stack trace listed here seems to from a java server. Why is this a Go issue? Could you please provide more information if you think this is still a Go issue.

easwars avatar Aug 16 '22 21:08 easwars

The stack trace listed here seems to from a java server. Why is this a Go issue? Could you please provide more information if you think this is still a Go issue.

This is stack trace of kreya grpc client.

Google.Protobuf.Reflection.DescriptorValidationException: application.GetPaginatedApplicationsResponse.response: ".paginatedList.list.Response" is not defined.

I import paginatedList.list.Response from another proto file (list.proto), but grpc reflection say is not defined

Screenshot from 2022-08-17 10-32-33

ja7ad avatar Aug 17 '22 05:08 ja7ad

This issue is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed.

github-actions[bot] avatar Aug 23 '22 06:08 github-actions[bot]

Can you please provide a reproducible test case?

zasweq avatar Aug 23 '22 17:08 zasweq