将Postman与GRPCS一起使用

发布于 2025-02-07 22:52:05 字数 607 浏览 0 评论 0原文

我有一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文