So the issue i am facing is below
ERROR IN GRPC CALL URL - Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="upstream connect error or disconnect/reset before headers. reset reason: protocol error
so i’m running my dotnet grpc in cloud run. For kestrel i am not using TLS security as Cloud Run automatically terminates it
currently i am using below code for authenticated channel on client side ,so my doubt is am i suppose to use this?
var channel = GrpcChannel.ForAddress(address, new GrpcChannelOptions { HttpHandler = new HttpClientHandler().ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;, Credentials = ChannelCredentials.Create(new SslCredentials(), credentials) });
cause why i got this doubt is since i am not managing any TLS security,
or is the above issue caused by any other reason??
-> one more thing which i tried is ,earlier i had not given the port number with the server url which i was trying to connect from the client side but no use
AstralConqueror is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.