I am working to gRPC in my .Net Core 2.1 application, But when i send a request the server throws an error stating
Connection id "" bad request data: "Unrecognized HTTP version: 'HTTP/2.0'
1.ParseRequestLine(TRequestHandler handler, ReadOnlySequence
1& buffer, SequencePosition& consumed, SequencePosition&HTTP/2 is supported with ASP.NET Core in the following IIS deployment scenarios: Windows Server 2016 or later / Windows 10 or later. IIS 10 or later. TLS 1.2 or later connection.
NET Core 2.1 will be reaching end of support on August 21, 2021 and after this date we will no longer provide updates including security fixes, or technical support for this version. We strongly recommend you migrate your applications to . NET Core 3.1 or later before this date.
Google Chrome offers a quick and easy way to check if HTTP/2 is supported on your SSL-enabled site. First, visit your site in Chrome over HTTPS. There you'll see your site listed with protocol h2, confirming your site works over HTTP/2.
Please checkout documentation here to enable http/2 in kestrel: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-2.2#http2-support
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With