grpc / grpc-web

gRPC for Web Clients
https://grpc.io
Apache License 2.0
8.63k stars 765 forks source link

for helloworld example, 503/(failed) NET ERR_INVALID_HTTP_RESPONSE #1178

Open alanhe421 opened 2 years ago

alanhe421 commented 2 years ago

I think envoy is proxy, it's ok when direct connect to 9090.

but error. 8080 is ok.

var client = new GreeterClient('http://' + window.location.hostname + ':9090',
                               null, null);

image

sampajano commented 2 years ago

Do you mind providing a link to the code you're quoting?

client.js seems to be pointing at :8080 correctly: https://github.com/grpc/grpc-web/blob/master/net/grpc/gateway/examples/helloworld/node-client.js#L16