将Postman与GRPCS一起使用
我有一个grpc endpoint hello.mydomain.io,在端口80(未加密)和港口443(带有公共信任证书的TLS)上暴露了
这两者都可以使用GRPCURL毫无困难:
me:~$ ./grpcurl -v hello.mydomain.io:443 list
addsvc.Add
grpc.gateway.examples.examplepb.ABitOfEverythingService
grpc.reflection.v1alpha.ServerReflection
grpcbin.GRPCBin
hello.HelloService
me:~$ ./grpcurl -v --plaintext hello.mydomain.io:80 list
addsvc.Add
grpc.gateway.examples.examplepb.ABitOfEverythingService
grpc.reflection.v1alpha.ServerReflection
grpcbin.GRPCBin
hello.HelloService
但是,当我尝试Postman(最新V9)。 21.2),只有端口80起作用,而安全端点永远卡住了“调用方法...”。希望有一些简单的配置可以解决这个问题!
I have a grpc endpoint hello.mydomain.io, exposed on port 80 (unencrypted) and port 443 (tls with a public trusted certificate)
Both of these are are reachable with grpcurl without difficulty:
me:~$ ./grpcurl -v hello.mydomain.io:443 list
addsvc.Add
grpc.gateway.examples.examplepb.ABitOfEverythingService
grpc.reflection.v1alpha.ServerReflection
grpcbin.GRPCBin
hello.HelloService
me:~$ ./grpcurl -v --plaintext hello.mydomain.io:80 list
addsvc.Add
grpc.gateway.examples.examplepb.ABitOfEverythingService
grpc.reflection.v1alpha.ServerReflection
grpcbin.GRPCBin
hello.HelloService
However when I try from Postman (latest v9.21.2), only port 80 works, while the secure endpoint is stuck "Invoking method..." forever. Hoping there's some easy configuration that fixes this!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论