We are facing the below error intermittently in Azure Function app - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

K Megha 1 Reputation point
2024-07-03T06:38:21.9566667+00:00

We are facing the below error intermittently in Azure Function app -

Error details:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Could you please help us resolve this error, as this is causing ADF pipeline failures

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,663 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,181 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 19,946 Reputation points
    2024-07-04T20:32:36.5933333+00:00

    You didn't provide enough information so I am assuming that your issue is mainly caused by a transient network connectivity or your configuration of the Function App.

    Verify that there are no network configuration issues, such as incorrect DNS settings, NSG rules, or firewall settings that might be blocking the connection.

    Review the timeout settings in your Azure Function app configuration. If the function takes longer to execute than the timeout setting allows, it may result in a connection failure.

    I have a doubt that your Function App has enough resources to handle the incoming requests. You may need to scale out the Function App if it is under heavy load.

    https://stackoverflow.com/questions/69820683/azure-function-call-other-api-failed-with-a-connection-attempt-failed-because-t

    https://learn.microsoft.com/en-us/answers/questions/1034261/network-connectivity-issue-between-the-azure-funct

    https://learn.microsoft.com/en-us/answers/questions/1624798/after-azure-deployment-a-connection-attempt-failed

    0 comments No comments