Getting error on trying to call a REST API on Data Factory

2024-09-03T18:32:30.7466667+00:00

Through Postman, I'm able to request a token using the following curl request - some info were hidden for security purposes.

curl --location 'https://hidden/Token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=hidden' \
--data-urlencode 'client_secret=hidden'

On Data Factory, I've tried both Web and Copy Data Activity, but got the same result.

I'm using the following header configuration.

User's image

But I'm unable to get the successful result that I get on Postman.

Postman result:

User's image

Data Factory result (I'm 100% sure that the client is valid, since I'm copying it from Postman instead of typing):

User's image Let me know what more evidences I may share.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,566 questions
{count} votes

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.