Search code examples
c#grpc.net-6.0

GRPC requests dont work on specific computer desperatly asking for HTTP 2.0. What can be wrong?


I made an .NET 6.0 app that makes grpc requests. It works perfectly fine on my machine, but doesn't work on another. I get this error in logs:

Status(StatusCode="Internal", Detail="Error starting gRPC call. HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.", DebugException="System.Net.Http.HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.

Is it some weird local network stuff or some .NET issue on that computer or what?

How to check if HTTP 2.0 works in that environment?


Solution

  • Finally found that it hadn't been working, 'cuz target machine had windows 7. Updating to 10 fixed the problem.