Recurring 5-minute connection timeout Foundry Model deployment

Yunzhao MA 0 Reputation points
2026-11-10T10:10:21.03+00:00

Hello

We are experiencing recurrent connection timeouts when using the OpenAI model deployment through Azure AI Foundry(swedencentral).

The issue occurs intermittently, approximately two-thirds of the way through processing a user request. The HTTP request remains pending for approximately 5 minutes before failing.

The fetch errors reported are :

TypeError: fetch failed
cause: HeadersTimeoutError
code: UND_ERR_HEADERS_TIMEOUT
message: Headers Timeout Error

or

{
  timestamp: '2026-11-10 10:04:07',
  durationMs: 301746,
  method: 'POST',
  error: '{"error":{"message":"The server had an error while processing your request. Sorry about that!","type":"server_error","param":null,"code":null,"request_id":"req_id"}}',
  abortSignal: { aborted: false, reason: undefined }
}

The timeout duration is approximately 300 seconds.

We are using the Responses API with streaming enabled (stream: true).

The auto retry of the same request often succeeds within approximately 10 seconds.

Could you please investigate whether there are any issues with the Azure infrastructure, regional routing, gateway, or model-serving cluster that could explain why response headers are not being returned in time?

We can provide additional timestamps, request IDs and diagnostic logs if needed.

Thank you.

Azure OpenAI in Foundry Models

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.