Skip to content
Advertisement

ngrok error Failed to read valid http request: malformed HTTP request

I’m using ngrok building a Secure tunnels to localhost server

On server side I run the command start ngrok

JavaScript

Display

JavaScript

It seems fine. Then I run the command on client side

JavaScript

and the

JavaScript

Alway reconnecting. Then I checkd the server side display these error

[07/12/17 17:40:13] [INFO] [pub:7ac836d4] New connection from 119.130.171.143:25904 [07/12/17 17:40:13] [WARN] [pub:7ac836d4] Failed to read valid http request: malformed HTTP request “x16x03x01x00x9ax01x00x00x96x03x03;Qߓxccjxb7nmxa0xe0x86x04u007fH{W5x10xb1xc4xccxedxe5xbfxc9x00xa1ĥbqx00x00x1cxc0/xc0+xc00xc0,xc0x13xc0txc0x14xc0” [07/12/17 17:40:13] [DEBG] [pub:7ac836d4] Closing [07/12/17 17:40:23] [INFO] [metrics] Reporting: {“bytesIn.count”:0,”bytesOut.count”:0,”connMeter.count”:0,”connMeter.m1″:0,”httpTunnelMeter.count”:0,”linux”:0,”osx”:0,”other”:0,”tcpTunnelMeter.count”:0,”tunnelMeter.count”:0,”tunnelMeter.m1″:0,”windows”:0}

Here is my cfg file content

JavaScript

Is there a solution to resolve this error? Thank you very much!

Advertisement

Answer

finally I found the solution

https://gist.github.com/lyoshenka/002b7fbd801d0fd21f2f

you have to use the port 4443

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement