-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GRPC client in .NET 5 run against 20.6.1 in insecure mode fails with "Request protocol 'HTTP/1.1' is not supported." #2707
GRPC client in .NET 5 run against 20.6.1 in insecure mode fails with "Request protocol 'HTTP/1.1' is not supported." #2707
Comments
I have verified this error doesn't happen when running against 20.6.1 with TLS enabled. So there must be something weird with the insecure mode. |
@Euphoric thanks for the report. It is possible that the application is not setting the HTTP/2 prior knowledge mode properly.
|
@shaan1337 Setting that doesn't change the behavior. |
I've just encountered this myself. Has anyone been able to figure out a workaround? EDIT: I found this which gave me the clue to get this working. I just added the Grpc.Net.Client package to my project directly. It's a dependency of EventStore.Client.Grpc, but it was installing v2.29.0 for me, rather than the latest v2.32.0 which appears to fix the issue with the Http2UnencryptedSupport switch. |
I confirm that updating Grpc.Net.Client to 2.32.0 fixed this problem. |
Just ran into this myself |
To Reproduce
Code to reproduce: https://github.com/Euphoric/EventStoreHttpError
Expected behavior
Works correctly.
Actual behavior
Throws exception with "Request protocol 'HTTP/1.1' is not supported."
EventStore details
EventStore server version: 20.6.1
Operating system: Windows
EventStore client version (if applicable): 20.6.1 in .NET 5 (5.0.100-rc.1.20452.10)
Additional context
Works when run against 20.6.0 in Dev mode with TLS.
Works when run in .NET Core 3.1 against 20.6.1
I haven't found any mentions of .NET 5 breaking backwards compatibility of GRPC.
The text was updated successfully, but these errors were encountered: