Reputation: 313
I have an Azure HTTP Trigger function and when I sent a POST request via POSTMAN this function work correctly (the below pic).
Now, I added this function to Azure Data Factory and I wanna run this function with the pipeline. I configured the parameter but I received an error. I don't know how should I send a URL request in the ADF pipeline and I received the below error.
My azure function code is here
New Error is:
Upvotes: 0
Views: 1146
Reputation: 1041
This is because your response from the Azure Function is not proper JSON. You have the return body like this:
"This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response."
It needs to be formatted like JSON where that message is the value of the "body" property.
Something like this:
{"body":"my custom response"}
Upvotes: 0