Timeout when server not found #363
Unanswered
lucasrabiec
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am facing the issue of a long waiting time while connecting to a server that doesn't exist, so I have two questions:
Could someone elaborate on why the time between sending calls and getting responses is so long when the server doesn't exist (or the wrong IP address is given)? Is there some kind of retry or something under the hood?
For example, I am sending a unary call from a client and I need to wait for something about 1-2 min when I got a response:
RpcError: 14 UNAVAILABLE: No connection established
How can I get the error
Server not found
or something similar (which tells me that the server is not found) immediately or quicker? AFAIK in official GRPC implementation in python, when the server is not found we get an error instantly.Edit: I found that I can do something like this:
transport.mergeOptions({ timeout: 5000 });
or provide the timeout through the options of service call, but it returnsRpcError: 4 DEADLINE_EXCEEDED: Deadline exceeded
. Are there other possibilities that will return code 14, not 4?Beta Was this translation helpful? Give feedback.
All reactions