Skip to content

Commit 5cf53e5

Browse files
authored
Update unsecured gRPC call troubleshooting (#20196)
1 parent 53376c7 commit 5cf53e5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

aspnetcore/grpc/troubleshoot.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var client = new Greet.GreeterClient(channel);
7070
7171
## Call insecure gRPC services with .NET Core client
7272

73-
Additional configuration is required to call insecure gRPC services with the .NET Core client. The gRPC client must set the `System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport` switch to `true` and use `http` in the server address:
73+
When an app is using .NET Core 3.x, additional configuration is required to call insecure gRPC services with the .NET Core client. The gRPC client must set the `System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport` switch to `true` and use `http` in the server address:
7474

7575
```csharp
7676
// This switch must be set before creating the GrpcChannel/HttpClient.
@@ -82,6 +82,8 @@ var channel = GrpcChannel.ForAddress("http://localhost:5000");
8282
var client = new Greet.GreeterClient(channel);
8383
```
8484

85+
.NET 5 apps don't need additional configuration, but to call insecure gRPC services they must use `Grpc.Net.Client` version 2.32.0 or later.
86+
8587
## Unable to start ASP.NET Core gRPC app on macOS
8688

8789
Kestrel doesn't support HTTP/2 with TLS on macOS and older Windows versions such as Windows 7. The ASP.NET Core gRPC template and samples use TLS by default. You'll see the following error message when you attempt to start the gRPC server:

0 commit comments

Comments
 (0)