arkadyb / blog

Source codes for a series of stories at Medium
23 stars 9 forks source link

Unable to Get it to work #1

Open avinash92c opened 4 years ago

avinash92c commented 4 years ago

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.

arkadyb commented 4 years ago

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

avinash92c commented 4 years ago

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

arkadyb commented 4 years ago

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.