ADF Azure data factory web activity error

Mav 81 Reputation points
2022-01-19T01:47:02.733+00:00

Hi,
I am calling an API in ADF using Web task ( not web hook).

It was working fine but recently I have started getting error

Response status code: 'ClientSideException HttpStatusCode : 408, HttpStatusString: RequestTimeout'. More details:Exception message: 'A task was canceled.'.
Url endpoint request timed out. Please make sure the endpoint response is within 1 minute and retry.

When I tested in postman I can see response is received in 2 minutes.

Can anyone suggest how to update timeout wait of 1 minute to say 5 minutes in ADF web task?

I can only find options like adding retries etc . but configuring retry option is not resolving this issue as during retry a fresh call is made which is killed after waiting for 1 minutes

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,487 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2022-01-19T16:08:57.503+00:00

    Hi @devhere ,

    Thank you for posting query in Microsoft Q&A Platform.

    REST endpoints that the web activity invokes must return a response of type JSON. The activity will timeout at 1 minute with an error if it does not receive a response from the endpoint.

    Since in your case its taking more than 1 minute you are seeing error.

    Could you please check if you can make use of HTTP connector for your case?

    Try creating dataset which is HTTP connector type and then use that dataset in lookup activity.

    Between, I reached product team internally and got update that they will be deploying fix to this by end of this month or early in next month. I will closely monitor this and update thread. Thank you.

    I see there is feedback provided by customers for web activity to have this timeout increased at below link. Kindly consider up-voting on it.
    https://feedback.azure.com/d365community/idea/1360f3f9-7026-ec11-b6e6-000d3a4f032c

    Hope this will help. Please let us know if any further queries.

    ---------------

    Please consider hitting Accept Answer. Accepted answers helps community as well.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Subetha Manivannan 1 Reputation point
    2022-04-13T12:17:44.97+00:00

    I too got the similar issue:

    REST endpoints that the web activity invokes must return a response of type JSON. The activity will timeout at 1 minute with an error if it does not receive a response from the endpoint.

    0 comments No comments

  2. mfeiksbauer 0 Reputation points
    2023-06-30T12:22:35.15+00:00

    This is still an issue, getting the following error:

    Response status code: 'ClientSideException HttpStatusCode : 408, HttpStatusString: RequestTimeout'. More details: Exception message: 'NA - Unknown [ClientSideException] A task was canceled.'. Request didn't reach the server from the client. This could happen because of an underlying issue such as network connectivity, a DNS failure, a server certificate validation or a timeout. Url endpoint request timed out. Please make sure the endpoint response is within 1 minute and retry.

    The endpoint response takes longer than a minute, why should this be a problem?

    Please fix this.