gRPC import path not working

I am trying to import a proto file and while one that has no import specified is fine, when I try to add the add import path, even if incorrect, postman keeps on complaining that it is not correct. Please see screenshot attached

image

anyone have any idea on this please?

Hey @db-tester! While adding the import path, you need to specify the path to the parent folder from which you are importing the proto file.

For example, given the following project structure, where root.proto contains the import statement import "x/y/z.proto", you need to add /my-app as the import path.

my-app/
├─ root.proto
├─ x/
│  ├─ y/
│  │  ├─ z.proto

In your case, adding the path to the parent folder of protos should do the trick!

@appurva.murawat so what you are saying there needs top be 2 import paths set? as for this I have tried the folder at different stages and all of them resulted in the same error