Getting error while calling a Web API using web activity

VC 51 Reputation points
2023-04-04T13:28:39.05+00:00

Hi,
I am calling an API in ADF using Web Activity. It is failing with the following error message. Error calling the endpoint ''. 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. I have tried increasing HTTP RequestTimeout to 10 minutes. Then got the following error. Error : 504.0 GatewayTimeout Can anyone suggest a solution for this ? User's image

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

Accepted answer
  1. HimanshuSinha-msft 19,381 Reputation points Microsoft Employee
    2023-04-05T18:57:59.14+00:00

    Hello @VC , Thanks for the question and using MS Q&A platform. I could suggest you do the below.

    1. Try to test the API call using other tools like postman or curl. If it succeeds there, then only try to implement that in Web activity (WA) .
    2. I see that you are doing a POST, but it does not have a body, which I find it to be odd. Are you selecting the correct verb ? User's image
    3. The uri which you are trying to reach is this internet facing ? .If yes can you please share that with us . The 504 Bad Gateway Timeout Error can be of many reason

    User's image

    Please do respond back and let us know how it goes. Himanshu Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues. 


0 additional answers

Sort by: Most helpful