Azure Functions Flex Consumption Node 22: intermittent response-header stalls, including minimal handlers

Matt Wallace 0 Reputation points
2026-11-22T22:19:14.9366667+00:00

We are investigating intermittent response stalls in a non-production Azure Function App.

Configuration:

  • Flex Consumption, UK South
  • Node.js 22
  • 512 MB, maximumInstanceCount 1
  • No always-ready instances
  • @azure/functions 4.17.0

Symptoms:

TCP/TLS typically completes within approximately 0.10–0.16 seconds, but some requests receive no response headers before our fixed 30-second client timeout. Other requests complete in approximately 0.15–0.50 seconds. Curl reports exit code 28 for the timed-out requests.

Isolation performed:

  1. A minimal handler removed business logic, Graph calls, managed-identity calls and the MCP SDK. It returned only small static responses.
  2. Both buffered and streamed responses were tested. Of ten requests, one buffered and one streamed request timed out; the other eight completed.
  3. A later scheduled comparison using curl from both a Mac and Azure Cloud Shell passed all four requests from each client.
  4. A subsequent full-runtime readiness test, using curl HTTP/1.1 and a 60-second settling period, again timed out. Public unauthenticated requests and absent routes also experienced stalls, so downstream data access cannot explain every failure.

Portal diagnostics for 22 November 2026 show:

  • Seven Microsoft.AspNetCore.Connections.ConnectionAbortedException occurrences: “Exception encountered while listening to EventStream. The HTTP/2 connection faulted.” Latest timestamp 21:49:13 UTC.
  • Three System.InvalidOperationException occurrences involving WorkerTerminate: “Can't write the message because the request is complete.” Latest timestamp 21:14:48 UTC.
  • Unhealthy script-host/readiness entries reporting “No script host available”, errorCode NoScriptHost, at 20:49:37 UTC.

We deliberately deployed, restored and disabled the app during these experiments. Some runtime errors may therefore relate to shutdown or deployment rather than the request stalls. We have not established that they coincide.

The app is currently disabled. We have not established memory exhaustion, a platform defect or a need for increased capacity.

Questions:

  • What targeted diagnostics can distinguish host/worker communication failures from deployment/shutdown effects in this situation?
  • Are there known issues matching these symptoms on Flex Consumption with Node 22?
  • What is the smallest useful evidence collection before considering a hosting or capacity change?

We can provide resource-specific details privately through an appropriate Microsoft support channel.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Alex Burlachenko 26,135 Reputation points MVP Volunteer Moderator
    2026-11-23T12:29:45.43+00:00

    hi Matt Wallace & thx for join me at Q&A platform,

    urs isolation tests are useful, particularly because minimal handlers and even unmatched routes experience the same stalls. That makes application business logic an unlikely explanation for every timeout.

    I'd focus on distinguishing cold-start/host-readiness delays from HTTP frontend-to-host or host-to-Node-worker communication problems. With Flex Consumption, no always-ready instances, and a maximum of one instance, scale-to-zero and startup behavior are relevant. However, a 30-second timeout doesn't establish a cold start, and a 60-second settling period doesn't guarantee the host remained ready. For targeted diagnostics, I'd correlate three things using UTC timestamps Client-side curl -v timing, particularly time_appconnect and time_starttransfer.

    Application Insights requests, exceptions, and traces, including operation_Id and cloud_RoleInstance where available.

    Function host startup, readiness, worker initialization, and termination events. The key distinction: If a timed-out request never appears in Application Insights, investigate the HTTP ingress or request handoff. If it appears but never completes, correlate it with host and worker events. Missing telemetry alone isn't conclusive.

    The HTTP/2 EventStream and WorkerTerminate exceptions are worth investigating, but they don't prove a Node 22 platform defect without timestamp correlation. Your deployment and shutdown experiments are important potential confounders. I'd run one controlled test without deployments or configuration changes, recording 10–20 requests, exact UTC timestamps, client timings, and corresponding telemetry.

    I can't confirm a known Flex Consumption/Node 22 issue matching this exact pattern.

    Before changing memory, instance limits, or hosting plans, I'd submit that evidence to Azure Functions support for host and worker communication analysis.

    Best regards,

    Alex

    💬 P.S. Did this help? Mark it as the solution: it keeps me motivated!

    ➕ Follow me on Q&A for more answers

    📝 And feel free to visit my blog → https://ctrlaltdel.blog/

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.