Error with StatusCode
Internal
thrown when a server is unavailable for a client running on .NET Framework 4.8 instead of Unavailable
#2581
Labels
bug
Something isn't working
What version of gRPC and what language are you using?
Grpc.Net.Client 2.67.0 and C#
What operating system (Linux, Windows,...) and version?
Windows 11
What runtime / compiler are you using (e.g. .NET Core SDK version
dotnet --info
).NET Framework 4.8
What did you do?
I have a GRPC server written in Java Spring Boot. I want to ensure proper retries if the server is unavailable. From what I understand, the client will retry if a retryable status code is returned. I would have thought that if the server is unavailable, I should get a status code of
StatusCode.Unavailable
but instead I getStatusCode.Internal
. SettingStatusCode.Internal
as a retryable status code works so far as the retries are concerned but that error is thrown for a variety of reasons that I don't want to retry on. Following is how I am setting up the channelWhat did you expect to see?
I expected to get a
StatusCode.Unavailable
when the server is not running.What did you see instead?
I am getting a
StatusCode.Internal
instead.The full error message is
Anything else we should know about your project / environment?
TlsValidationCallback
is a function that I am using to validate a custom certificate which is why managing my ownWinHttpHandler
is neded.The text was updated successfully, but these errors were encountered: