Azure数据工厂上Azure函数中的3603用户配置问题错误

2024-05-14 19:31:31 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个Azure HTTP触发器函数,当我通过邮递员发送POST请求时,该函数正常工作(下图)

enter image description here

现在,我将此函数添加到Azure Data Factory中,并希望通过管道运行此函数。 我配置了参数,但收到一个错误。我不知道如何在ADF管道中发送URL请求,我收到了以下错误

enter image description here

enter image description here

我的azure函数代码是here

新错误是:

enter image description here


Tags: 函数代码httpurl邮递员data参数管道
1条回答
网友
1楼 · 发布于 2024-05-14 19:31:31

这是因为Azure函数的响应不是正确的JSON。返回体如下所示:

 "This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response."

它需要像JSON一样格式化,其中消息是“body”属性的值

大概是这样的:

{"body":"my custom response"}

相关问题 更多 >

    热门问题