-
Notifications
You must be signed in to change notification settings - Fork 768
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
Issue after update to 2.52.0 #2075
Comments
That error should only happen if you're configuring Could you create a reproduction of the problem and put it in a GitHub repo? I'll take a look. |
TestGrpcWeb.zip |
If I give a dummy uri and comment ServiceConfig it doesn't crash anymore on GrpcChannel.ForAddress |
I believe this issue is been caused by 5a0b1ee Even though the handler is configured to not use a proxy one is determined by var proxy = socketsHttpHandler.Proxy ?? HttpClient.DefaultProxy; Its ignoring the UseProxy property on the handler This never returns false basically on my system when a load balancer is configured, I assume the same is happening for @plombaer so exiting it then sets the handler type to be Custom and then causing the error later in the code. |
Yes, that would easily explain it. I think there are two options:
|
Well adding below to IsProxied line 299 in GrpcChannel.cs fixes the immediate issue. if (!socketsHttpHandler.UseProxy) { On the proxy side are you saying it can't work if a proxy is present? But there is no reason it can't work (obviously will have a performance impact) but it will still load balance on the target group of servers? |
I would say the same, I have an address that resolves to 2 different records and load balances correctly even being behind a proxy. Works in 2.51 and shows me the error reported here when I switch to 2.52. |
I also get the same error. Here is a very simple example. When will there be a solution to the error? |
Hi |
2.53.0 will revert back to 2.51.0 behavior. Now a log message is written if a proxy is detected. Use 2.51.0 until it's available. |
Dear
Since the upgrade I'm getting the following error :
System.InvalidOperationException: 'Channel is configured with an HTTP transport doesn't support client-side load balancing or connectivity state tracking. The underlying HTTP transport must be a SocketsHttpHandler with no SocketsHttpHandler.ConnectCallback configured. The HTTP transport must be configured on the channel using GrpcChannelOptions.HttpHandler.'
My service is hosted in IIS using gRPC.Web with client load balancing.
All was working fine before the update.
Here is my client code:
The text was updated successfully, but these errors were encountered: