Echo Demo not Working
See original GitHub issueHey there, a couple of us in our office have recently followed the directions in INSTALL.md
and the net/grpc/gateway/examples/echo/README.md
.
After following the instructions without any visible errors, we can confirm that the docker instances are all running as expected:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d70c3b126c95 grpcweb/closure-client "nginx" Less than a second ago Up 2 seconds 0.0.0.0:8081->8081/tcp modest_bohr
930f5ebfbbb6 grpcweb/envoy "/usr/bin/dumb-init …" 57 seconds ago Up About a minute 0.0.0.0:8080->8080/tcp, 10000/tcp eloquent_heisenberg
7dd1c9f8ce1f grpcweb/echo-server "/github/grpc-web/ne…" 3 minutes ago Up 3 minutes 0.0.0.0:9090->9090/tcp echo-server
However, when running http://localhost:8080/net/grpc/gateway/examples/echo/echotest.html
in the browser, we get:
upstream connect error or disconnect/reset before headers
We have also attempted to hook up our own GRPC service and a custom Envoy container with a HTTP-GRPC proxy and are getting the exact same error for any validly formatted POST request we send to the envoy proxy.
This is a complete blocker for us at this time. Any ideas?
EDIT: Discovered the echo README.md documentation is wrong, the browser URL should be:
http://localhost:8081/echotest.html
However, this also breaks as it can’t load the main.js file and I now get this error:
GET http://localhost:8081/dist/main.js net::ERR_ABORTED 404 (Not Found)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
I see this is closed, but actually the same issue there when following - https://github.com/grpc/grpc-web/tree/master/net/grpc/gateway/examples/helloworld guide. Just reporting.
Closing this. Original issue was resolved. Added a blurb on how to compile the
protoc-gen-grpc-web
plugin here: https://github.com/grpc/grpc-web#code-generator-plugin