tonic icon indicating copy to clipboard operation
tonic copied to clipboard

Non-descriptive error messages on connection failure

Open efagerho opened this issue 1 year ago • 1 comments

Tonic currently returns "transport error" when DNS queries fail. This can happen for instance when a DNS resolver is overloaded in a Kubernetes cluster or the VPC DNS resolver throttles on AWS.

It would be extremely helpful if the library could distinguish between DNS errors, TCP connection error and HTTP/2 connection error.

efagerho avatar Jan 24 '24 12:01 efagerho

The error messages in transport are unfortunately not totally complete in this way. This was due to a few reasons, mostly, being that I didn't want the current code to last this long but I guess sometimes you don't have much choice in that 😄. Agreed, this should be fixed.

LucioFranco avatar Feb 02 '24 19:02 LucioFranco