java - io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2Exception:意外的 HTTP/1.x 请求:GET 请求
问题描述
我收到带有 curl 命令的意外 HTTP/1.x 请求(版本 7.77.0) curl -k -v --http2 http://localhost:9090/v1/grpc/hello 请求
和
HTTP/2 客户端前言字符串丢失或损坏。curl -k -v --http2 https://localhost:9090/v1/grpc/hello 请求上接收到的字节的十六进制转储
https://github.com/konzerntech/grpcsample/issues/1
我正在使用 Spring Boot GRPC 应用程序,尝试从 curl 获取 GET HTTP 请求
下面是我的原始文件服务方法
service PingPongService {
rpc ping(PingRequest) returns (PongResponse) {
option (google.api.http) = { get: "/v1/grpc/{ping}" };
}
}
我的意图是通过 json 请求访问 grpc 存根方法。整个代码的任何帮助都在 git hub 中共享。
解决方案
推荐阅读
- mysql - 冻结mysql表
- javascript - 未捕获的错误:OpenTok 注释小部件需要 OpenTok 解决方案
- php - 从 Woocommerce 中的自定义属性创建 URL
- asp.net-core - 在剃刀视图中添加/删除功能
- c++ - 从 elf 文件中获取 .eh_frame 部分的内容
- android - Kotlin 1.4.20 - 构建速度较慢
- node.js - 使用 Node.is 从 GCP 存储获取文件
- css - 移除 Material UI 的 TextField 中的上下箭头
- android - 如何查看/更新数据库版本?有没有像“fallbackToDestructiveMigration”这样的东西?
- docker - Gitlab容器注册表抛出TLS握手超时错误