blog icon indicating copy to clipboard operation
blog copied to clipboard

Unable to Get it to work

Open avinash92c opened this issue 4 years ago • 3 comments

I Followed Your example and create a couple of endpoints and tried with grpc and rest clients. Both End in failures with the following error rpc error: code = Unavailable desc = unavailable also i noticed for no reason, the client inside the server which proxies the requests keeps calling * endpoint nonstop in 1 second intervals. i was trying in insecure mode.

avinash92c avatar May 13 '20 10:05 avinash92c

Hi @avinash92c , what blog post are you referring to? Were you able to run an example i built?

arkadyb avatar May 14 '20 23:05 arkadyb

i referred to this blog post https://medium.com/swlh/rest-over-grpc-with-grpc-gateway-for-go-9584bfcbb835. i referred to this git codebase and wrote a insecure version of the solution. i didnt yet try the example you built. grpcgateway.zip

avinash92c avatar May 15 '20 18:05 avinash92c

I guess without tls, you end-up running http1.1 which is time limited and going to be cancelled once in a while. That is my guess, i never tried to run insecure grpc server with grpc-gateway myself. Try to turn it into secure connection to establish a single connection via http2.

arkadyb avatar May 21 '20 12:05 arkadyb