You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gRPC-Web, however, works with both HTTP/1.1 and HTTP/2. Some platforms, such as UWP or Unity, can't use HTTP/2. To support all client apps, configure the server to enable HTTP/1.1 and HTTP/2.
I have started an empty new project with gRPC, added and enabled gRPC-Web and set Http1AndHttp2 on Kestrel. Here is an example repository.
What did you expect to see?
Executing an HTTP/1.1 request should work
What did you see instead?
curl 'https://localhost:7060/greet.Greeter/SayHello' -H 'Content-Type: application/grpc' -X POST -v --insecure --http1.1
results in the response:
< Grpc-Message: Request protocol 'HTTP/1.1' is not supported.
The text was updated successfully, but these errors were encountered:
What version of gRPC and what language are you using?
I'm using C# with .NET 8.0 on ASP.NET Core and
Grpc.AspNetCore.*
packages 2.65.What operating system (Linux, Windows,...) and version?
Linux (Fedora 40, Linux 6.10.6)
What runtime / compiler are you using (e.g. .NET Core SDK version
dotnet --info
)8.0.107
What did you do?
I'm building a service with gRPC-Web. gRPC-Web is supposed tu support HTTP/1.1, and the .NET documentation for it also hints at that: https://learn.microsoft.com/en-us/aspnet/core/grpc/grpcweb?view=aspnetcore-8.0#http-protocol
I have started an empty new project with gRPC, added and enabled gRPC-Web and set
Http1AndHttp2
on Kestrel. Here is an example repository.What did you expect to see?
Executing an HTTP/1.1 request should work
What did you see instead?
results in the response:
The text was updated successfully, but these errors were encountered: