Urgent: Azure function returns response in postman but not in azure portal or Data Factory

Jeevi Danda 71 Reputation points
2022-11-30T02:02:28.057+00:00

Hi,

I deployed a POST http trigger function and deployed to portal. When I take the function url and test from postman returns the expected result. But when I run from Azure portal function app by clicking 'Code + Test' option is showing 200 OK but the response coming as empty. Please let me know if I missing anything.

265551-image.png

265524-image.png

Thanks,
Jeevi

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
0 comments No comments
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2022-12-01T07:05:36.487+00:00

    Please make sure that the return type is valid Jobject when running from ADF pipeline. The return type of the Azure function has to be a valid JObject. (Keep in mind that JArray is not a JObject.) Any return type other than JObject fails and raises the user error Response Content is not a valid JObject.

    https://learn.microsoft.com/en-us/azure/data-factory/control-flow-azure-function-activity#azure-function-linked-service

    Feel free to reach out to me if you have any questions or concerns.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.