问题1:postman中proto文件import问题
Unresolved "import" directives
We could not find some of the files imported by the .proto file.
Specify import paths to those unresolved files using the options below.
解决方法:
项目结构如下
- code
|- pbentity
| -- xxx.proto
|- user
| -- v1
| --- yyy.proto
若yyy.proto引用了xxx.proto文件:import "pbentity/xxx.proto";
则在psotman的 Add an import path选择,就必须选择code的绝对路径。让psotman知道工作目录。成功之后就可以看到如下:
问题2:Status code: 14 UNAVAILABLE
解决办法:
不使用TLS