首页 > 解决方案 > Azure 数据工厂中的 Web 活动问题

问题描述

执行我的管道时出现错误。

错误

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

这是我的代码:

{“名称”:“管道1”,“属性”:{“活动”:[{“名称”:“Web1”,“类型”:“WebActivity”,“策略”:{“超时”:“7.00:00: 00”,“重试”:0,“retryIntervalInSeconds”:30,“secureOutput”:假,“secureInput”:假},“typeProperties”:{“url”:“ http://00.00.00.00:8000/name? env=DEV ", "方法": "GET" } } ] } }

标签: azureazure-data-factory-2

解决方案


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

我尝试使用有效的 url 并且作业成功。

Web 活动的 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": ""
                }
            }
        ]
    }
}

成功的 Web Activity。

在此处输入图像描述

有关更多详细信息,请参阅“<a href="https://docs.microsoft.com/en-us/azure/data-factory/control-flow-web-activity" rel="nofollow noreferrer">Azure 中的 Web 活动数据工厂”。

希望这可以帮助。


推荐阅读