Azure数据工厂中的Web活动问题

时间:2019-03-29 12:16:26

标签: azure azure-data-factory-2

在执行管道时遇到错误。

错误

{     “ errorCode”:“ 2108”,     “ message”:“调用端点时出错。响应状态代码:”,     “ failureType”:“ UserError”,     “ target”:“ Web1” }

这是我的代码:

{     “ name”:“ pipeline1”,     “属性”:{         “活动”:[             {                 “ name”:“ Web1”,                 “ type”:“ WebActivity”,                 “政策”:{                     “ timeout”:“ 7.00:00:00”,                     “重试”:0,                     “ retryIntervalInSeconds”:30,                     “ secureOutput”:否,                     “ secureInput”:否                 },                 “ typeProperties”:{                     “ url”:“ http://00.00.00.00:8000/name?env=DEV”,                     “ method”:“ GET”                 }             }         ]     } }

1 个答案:

答案 0 :(得分:0)

确保您输入了有效的“ url-目标端点和路径”。

我尝试使用有效的网址,但工作成功。

网络活动的JSON代码:

{
    "name": "pipeline1",
    "properties": {
        "activities": [
            {
                "name": "Webactivity",
                "type": "WebActivity",
                "policy": {
                    "timeout": "7.00:00:00",
                    "retry": 0,
                    "retryIntervalInSeconds": 30,
                    "secureOutput": false,
                    "secureInput": false
                },
                "typeProperties": {
                    "url": "https://www.microsoft.com/",
                    "method": "GET",
                    "body": ""
                }
            }
        ]
    }
}

成功的网络活动。

enter image description here

有关更多详细信息,请参阅“ Web activity in Azure Data Factory”。

希望这会有所帮助。