emqx-extension-examples icon indicating copy to clipboard operation
emqx-extension-examples copied to clipboard

exproto-svr-java:HTTP/2 client preface string missing or corrupt

Open huwei14 opened this issue 3 years ago • 3 comments

请问用网络调试助手连接测试,是连接TestGrpcServer里配置的端口吗?

我连接127.0.0.1:9001成功后,发送任何数据都报“HTTP/2 client preface string missing or corrupt. Hex dump for received bytes: ”错误

huwei14 avatar Sep 30 '21 08:09 huwei14

7993端口

jengy avatar Oct 15 '21 06:10 jengy

Hello, I am trying to use emqx-exproto but not able to setup demo locally. Facing same error If I connect directly. 1- I have setup demo locally and it is running. 2- EMQX is also running on local using docker and plugin emqx-exproto also loaded. 3- In ConnectionHandler I am using this as HOST String HOST = "localhost:9100"; 4- my gRPC server running on PORT 5001 5- I have updated emqx-exporto.conf also exproto.listener.protoname.connection_handler_url = http://host.docker.internal:5001 also tried with exproto.listener.protoname.connection_handler_url = http://127.0.0.1:5001 6- Now when I try to connect to emqx using Jmeter it is connected but no callback in exproto-svr-java demo running application. On Publish also nothing happens.

If I try to connect directly to gRPC server using localhost:5001 facing this error io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2Exception: HTTP/2 client preface string missing or corrupt. Hex dump for received bytes: 102000064d514973647003c2003c000661646d696e330002

It will be helpful if you can guide how can I test this exproto-svr-java complete flow.

Also If possible please share which tool I can use to test flow.

fizzshehzad avatar Nov 16 '21 10:11 fizzshehzad

Hello, I am trying to use emqx-exproto but not able to setup demo locally. Facing same error If I connect directly. 1- I have setup demo locally and it is running. 2- EMQX is also running on local using docker and plugin emqx-exproto also loaded. 3- In ConnectionHandler I am using this as HOST String HOST = "localhost:9100"; 4- my gRPC server running on PORT 5001 5- I have updated emqx-exporto.conf also exproto.listener.protoname.connection_handler_url = http://host.docker.internal:5001 also tried with exproto.listener.protoname.connection_handler_url = http://127.0.0.1:5001 6- Now when I try to connect to emqx using Jmeter it is connected but no callback in exproto-svr-java demo running application. On Publish also nothing happens.

If I try to connect directly to gRPC server using localhost:5001 facing this error io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2Exception: HTTP/2 client preface string missing or corrupt. Hex dump for received bytes: 102000064d514973647003c2003c000661646d696e330002

It will be helpful if you can guide how can I test this exproto-svr-java complete flow.

Also If possible please share which tool I can use to test flow.

When you use TCP to connect to EMQ. You must use port 7993. 9001 is the channel for interaction between EMQ and TCP through grpc.

WangScaler avatar Jun 10 '22 08:06 WangScaler