我有一个工作正常的GRPC服务器(使用BloomRPC进行了测试)。我有一个用Angular和ngx-grpc构建的前端。当从我的grpc客户端发送请求时,我在服务器端得到以下错误。你知道问题出在哪里吗?
Complete BDP ping err={"created":"@1600003114.696000000","description":"Failed parsing HTTP/2","file":"d:\a\grpc-node\grpc-node\packages\grpc-native-core\deps\grpc\src\core\ext\transport\chttp2\transport\chttp2_transport.cc","file_line":2582,"referenced_errors":[{"created":"@1600003114.696000000","description":"Connect string mismatch: expected 'P' (80) got 'O' (79) at byte 0","file":"d:\a\grpc-node\grpc-node\packages\grpc-native-core\deps\grpc\src\core\ext\transport\chttp2\transport\parsing.cc","file_line":97}]}发布于 2020-09-14 00:00:20
我想通了。我想问题在于我对ngx-grpc的工作原理缺乏了解。我的grpc服务器期望一个http/2请求,但是ngx-grpc发送了一个http/1.1请求。所以我不得不运行特使代理。现在,通信工作正常。
https://stackoverflow.com/questions/63867863
复制相似问题