Skip to content

Failed to proxy request with ForwarderError: ResponseBodyDestination The response ended prematurely #10969

@AndYggdrasil

Description

@AndYggdrasil

Investigative information

Please provide the following:

  • Timestamp: 2025-03-28T12:35:19.4820329Z
  • Function App version: v4
  • Invocation ID: c4ecf110-2ad9-46fc-9880-0f21be5972b7
  • Region: West Europe

Exception thrown on HttpTriggered function:
Exception while executing function: Functions.FunctionName Failed to proxy request with ForwarderError: ResponseBodyDestination The response ended prematurely, with at least 82 additional bytes expected. (ResponseEnded)

Repro steps

  1. Function app project dependencies:
<PackageReference Include="Microsoft.ApplicationInsights.TraceListener" Version="2.23.0" />
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
<PackageReference Include="Polly.Extensions.Http" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="9.0.2" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.3.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.0.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.ServiceBus" Version="5.22.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.3.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.2" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.23.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.0.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.1" />
  1. Call function app

Known workarounds

We have identified that upgrading to the newest version of the SDK packages solves this issue, however, then we run in to this issue #10575 , that suggests us to downgrade. That leads to a catch-22 situation.

Related information

I came across #10640 that suggests us to use .ConfigureFunctionsWebApplication(). However, we are already doing that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions