On Mon, Oct 3, 2016 at 7:36 AM, Aleksey Telyshev <[email protected] > wrote:
> I have simple GRPC echo service on Win server 2012 and python script on > Ubuntu Linux that get fired from cron every 1 min > Once in a day > Be more specific about "once in a day"? Does it happen exactly every twenty-four hours, give or take a few seconds, or do you observe the issue once a day on average? I get an exception > > , in run res = stub.Echo(req, _TIMEOUT_SECONDS) File > "/usr/local/lib/python2.7/dist-packages/grpc/framework/ > crust/implementations.py", > > line 75, in __call__ protocol_options, metadata, request) File > "/usr/local/lib/python2.7/dist-packages/grpc/framework/crust/_calls.py", > > line 109, in blocking_unary_unary return next(rendezvous) File > "/usr/local/lib/python2.7/dist-packages/grpc/framework/ > crust/_control.py", > > line 415, in next raise self._termination.abortion_error NetworkError: > NetworkError(code=StatusCode.UNAVAILABLE, details="") > This stack trace suggests that you are working with a version of gRPC Python <0.15 - if that's the case, what is the reason for it? If you are able to do so please upgrade to 1.0.0-or-later and look into whether the issue continues to recur? Next call works fine. What could be a reason for such behavior ? > There are scores of possible reasons. Just out of curiosity, are you connecting over a secure or insecure channel? Should I just ignore it and implement reconnect logic ? > Probably, for now - although do you mean "reconnect" as something different than "retry"?. We intend in the future to implement automatic retries within gRPC itself, but implementing retry logic yourself would be the way to have it available for your use today. -N -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAEOYnAQ57SCpb%2Bb4JsEHqJoLP0G63PXzZE2K%2BkprCYoRRzEucQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
