grpc-web icon indicating copy to clipboard operation
grpc-web copied to clipboard

GRPC example Hello World getting error calling envoy

Open Skebard opened this issue 3 years ago • 2 comments

I have cloned the repo and I wanted to try the example. It seems that due to the version of npm I can not execut npx webpack and therefore I have decided to use BloomRPC as client.

When calling the service directly at localhost:9090 it works:

image

But when trying to call through the envoy proxy at http://localhost:8080 I get the following error:

{ "error": "full url: http://localhost:8080/helloworld.Greeter/SayHello, code: 14, err: Http response at 400 or 500 level" }

image

Any idea of what is happening?

Skebard avatar Sep 02 '22 15:09 Skebard

hi.

i'm not familiar with BloomRPC but i suspect it's not using grpc-web protocol?

grpc-web speaks a different protocol (based on http/1.1 over Envoy) than grpc (based on http/2), and hence maybe the difference what you're seeing?

sampajano avatar Sep 02 '22 21:09 sampajano

Bloom has a toggle-button in the upper right corner to switch between grpc and grpc-web. You need to select grpc-web when talking via envoy.

maja42 avatar Sep 19 '23 19:09 maja42

Hi :) I'm closing this because it's likely unrelated to the grpc-web library in specific.

Feel free to re-open or start another https://github.com/grpc/grpc-web/discussions if needed. Thanks! :)

sampajano avatar Jun 24 '24 05:06 sampajano