how to send nonroot traffic to grpc server

51 views
Skip to first unread message

Pawan Kumar

unread,
May 21, 2020, 5:42:33 AM5/21/20
to grpc.io

Hi guys,
I am a newbie on gRPC. I wanna setup nonroot path-based routing. can someone help me on this if missing?
I have created one gRPC client and server and its working, I have also implemented envoy to send traffic to the server and its working fine on my local.
Code I have added here, https://pastebin.com/BCbvMGxB
grpc_curl also working:

grpc_cli ls localhost:10000
grpc.reflection.v1alpha.ServerReflection
healthcheck.Greeter

but when I am sending nonroot path based but getting failed and this route I have added in envoy yaml.

                    routes:
                      - name: grpc_route
                        match:
                          prefix: "/hello"
                        route:
                          prefix_rewrite: "/"

Error:

grpc_cli ls localhost:10000/hello
Received an error when querying services endpoint.
ServerReflectionInfo rpc failed. Error code: 14, message: Socket closed, debug info: {"created":"@1590053896.870413000","description":"Error received from peer ipv6:[::1]:10000","file":"s

Pawan Kumar

unread,
May 21, 2020, 5:43:26 AM5/21/20
to grpc.io
Reply all
Reply to author
Forward
0 new messages