-
Notifications
You must be signed in to change notification settings - Fork 280
Description
Description
Upon upgrading "Microsoft.Azure.Functions.Worker.Extensions.DurableTask" from version 1.2.1 to 1.8.0, I began receiving the following error:
Actual behavior
Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="Error connecting to subchannel.", DebugException="System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it.")
[2025-09-22T19:53:06.654Z] ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
[2025-09-22T19:53:06.655Z] at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
[2025-09-22T19:53:06.657Z] at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
[2025-09-22T19:53:06.659Z] at System.Net.Sockets.Socket.g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
[2025-09-22T19:53:06.661Z] at Grpc.Net.Client.Balancer.Internal.SocketConnectivitySubchannelTransport.TryConnectAsync(ConnectContext context, Int32 attempt)
[2025-09-22T19:53:06.663Z] --- End of inner exception stack trace ---
[2025-09-22T19:53:06.665Z] at Grpc.Net.Client.Balancer.Internal.ConnectionManager.PickAsync(PickContext context, Boolean waitForReady, CancellationToken cancellationToken)
[2025-09-22T19:53:06.667Z] at Grpc.Net.Client.Balancer.Internal.BalancerHttpHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
[2025-09-22T19:53:06.669Z] at System.Net.Http.HttpMessageInvoker.g__SendAsyncWithTelemetry|6_0(HttpMessageHandler handler, HttpRequestMessage request, CancellationToken cancellationToken)
[2025-09-22T19:53:06.671Z] at Grpc.Net.Client.Internal.GrpcCall2.RunCall(HttpRequestMessage request, Nullable
1 timeout)
[2025-09-22T19:53:06.672Z] at Grpc.Net.Client.Internal.GrpcCall`2.GetResponseHeadersCoreAsync()
[2025-09-22T19:53:06.674Z] at Microsoft.DurableTask.Client.Grpc.GrpcDurableTaskClient.GetInstancesAsync(String instanceId, Boolean getInputsAndOutputs, CancellationToken cancellation
Known workarounds
When I Downgrade the package to previously version 1.2.1 it works.
App Details
- Function Runtime Version 2.0
- net8.0
- v4
- Microsoft.ApplicationInsights.WorkerService Version="2.22.0"
- Microsoft.Azure.AppConfiguration.Functions.Worker Version="8.4.0"
- Microsoft.Azure.Functions.Extensions Version="1.1.0"
- Microsoft.Azure.Functions.Worker Version="2.1.0"
- Microsoft.Azure.Functions.Worker.Sdk Version="2.0.5"
- Microsoft.Azure.Functions.Worker.Extensions.DurableTask Version="1.8.0"
- Microsoft.Azure.Functions.Worker.Extensions.Http Version="3.3.0"
- Microsoft.Azure.Functions.Worker.Extensions.Storage Version="6.3.0"
- Microsoft.Azure.Functions.Worker.Extensions.Timer Version="4.3.1"
- Microsoft.Azure.Functions.Worker.Extensions.ServiceBus Version="5.23.0"
- Microsoft.Azure.Functions.Worker.ApplicationInsights Version="2.0.0"
- Microsoft.Extensions.Configuration.UserSecrets Version="9.0.0"
- Microsoft.Extensions.DependencyInjection Version="9.0.0"
Do I need to upgrade any other package or change anything in code to make it work when using the version 1.8.0?