0

我已经根据这里的教程添加了一个触发器。当我保存它并尝试运行触发器时,它会导致失败。如果我看一下OUTPUTS LINK历史,它有以下内容:

{
"statusCode": 400,
"headers": {
    "Pragma": "no-cache",
    "x-ms-ratelimit-remaining-subscription-writes": "1197",
    "x-ms-request-id": "87dc2cc6-0894-4d2c-955d-22d922673139",
    "x-ms-correlation-request-id": "87dc2cc6-0894-4d2c-955d-22d922673139",
    "x-ms-routing-request-id": "WESTUS:20171005T133404Z:87dc2cc6-0894-4d2c-955d-22d922673139",
    "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
    "Timing-Allow-Origin": "*",
    "Cache-Control": "no-cache",
    "Date": "Thu, 05 Oct 2017 13:34:04 GMT",
    "Location": "https://logic-apis-westus.azure-apim.net/apim/azureeventgrid/65eea0596ae646bea4bbea2060aa2faa/eventSubscription/unsubscribe?x-ms-api-version=2017-06-15-preview&resource=%2Fsubscriptions%2F9c09809e-3d3b-4987-84f4-3d26f4eec628%2FresourceGroups%2FDSDev%2Fproviders%2FMicrosoft.EventGrid%2FeventSubscriptions%2FLogicApp3692dffd-19cb-49d4-836d-a54ca4a6ca22",
    "Content-Length": "25",
    "Content-Type": "application/json",
    "Expires": "-1"
},
"body": "Model state is invalid."

}

我实际上只添加了触发器,所以不确定什么可能是无效的?

谢谢

亚历克斯

4

1 回答 1

0

这是您第一次保存此类逻辑应用程序吗?因为触发器是一个 webhook 触发器,所以每次修改它,保存时,引擎都会取消订阅旧事件并订阅新事件。如果 Logic App 中指定的旧事件无效(例如,您输入了不存在的资源名称),则取消订阅将失败。但即便如此,如果新信息有效,订阅应该仍然有效。您可以通过触发事件来验证它并验证逻辑应用是否被触发。

于 2017-10-14T00:59:57.627 回答