How to fix web activity error "Error calling the endpoint" for Azure API management service from Azure data factory

Chodisetti, Veda 0 Reputation points
2024-04-22T21:50:32.2266667+00:00

I have an azure data factory in VNet and API management service with virtual network type "Internal". I am trying to invoke one of the Api endpoints from data factory using web activity "POST" method but getting the below mentioned error from ADF. The same endpoint is working from postman but not from ADF. In the web activity, I'm using the same type of authentication and headers which were used in postman. Also, the runtime we are using in the web activity has interactive authoring enabled.

Error message from ADF web activity: "Error calling the endpoint 'https://apim-test-dev.azure-api.net'. Response status code: 'NA - Unknown'. More details: Exception message: 'NA - Unknown [ClientSideException] The remote name could not be resolved: 'apim-test-dev.azure-api.net''. 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."

Any pointers to help this issue would be greatly appreciated.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,287 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,206 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tejaswi Datla 0 Reputation points
    2025-02-07T00:19:13.8+00:00

    I got the same error.
    Error calling the endpoint 'https://login.microsoftonline.com'. Response status code: 'NA - Unknown'. More details: Exception message: 'NA - Unknown [ClientSideException] Misused header name. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.'.

    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.

    But when I POST using postman, I get a response with status 200

    0 comments No comments

Your answer

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