grpc-Project #254
Replies: 4 comments 4 replies
-
grpc should be using HTTP/2, not HTTP/1.1. Did you try it over https instead? |
Beta Was this translation helpful? Give feedback.
-
@parveenLily can you please point out to the project you are trying out? Is it this one https://github.com/dodyg/practical-aspnetcore/tree/net5.0/projects/grpc/grpc |
Beta Was this translation helpful? Give feedback.
-
@parveenLily I managed to replicate your error. I just update dthe sample to use t latest packages and it works now. Thanks. I also retested all the 12 samples and confirm that they are all working now with the latest packages. |
Beta Was this translation helpful? Give feedback.
-
Hi dodgy, |
Beta Was this translation helpful? Give feedback.
-
Hi,
Was trying to play with your grpc projects. I get the following error when i try to run the client:
ail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HM5MJHISP60Q", Request id "0HM5MJHISP60Q:00000002": An unhandled exception was thrown by the application.
System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: The response ended prematurely.
at System.Net.Http.HttpConnection.FillAsync(Boolean async)
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean async, Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
at Grpc.Net.Client.Internal.GrpcCall
2.SendAsync(HttpRequestMessage request) at Grpc.Net.Client.Internal.GrpcCall
2.GetResponseHeadersAsync()at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://localhost:5000/ - - - 500 0 - 11914.9660ms
Beta Was this translation helpful? Give feedback.
All reactions