gpt4 book ai didi

azure - 逻辑应用标准工作流触发器失败

转载 作者:行者123 更新时间:2023-12-02 08:16:29 25 4
gpt4 key购买 nike

我们创建了一个使用服务总线 API 连接的逻辑应用标准。当查看“连接”选项卡时,它显示连接处于“已连接”状态。

enter image description here

问题是工作流的触发失败,输出 json 如下:

{
"statusCode": 401,
"headers": {
"Cache-Control": "no-store, no-cache",
"Pragma": "no-cache",
"x-ms-request-id": "xxxx",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "true",
"Date": "Wed, 20 Jul 2022 15:21:08 GMT",
"Content-Length": "287",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"status": 401,
"message": "Key 'token' not found in connection profile.\r\nclientRequestId: 0b492f59-bca5-4901-8132-b0ce10416d25",
"error": {
"message": "Key 'token' not found in connection profile."
},
"source": "servicebus-xxx.azurewebsites.net"
}
}

这里可能出现什么问题?

这可能是由于权限限制吗?

最佳答案

对我来说,这个问题的解决方案不在 API 连接本身,而是在逻辑应用本身的connections.json 文件中。任何地方都没有文档描述对连接的“connectionProperties”部分的需求。我通过对门户创建的标准逻辑应用程序进行逆向工程发现了它。

{
"managedApiConnections": {
"servicebus-central": {
"api": {
"id": "/subscriptions/..."
},
"authentication": {
"type": "ManagedServiceIdentity"
},
"connection": {
"id": "/subscriptions/..."
},
"connectionRuntimeUrl": "@appsetting('ServiceBusCentralConnectionRuntimeUrl')",
"connectionProperties": {
"authentication": {
"audience": "https://servicebus.azure.net",
"type": "ManagedServiceIdentity"
}
}
}
}
}

关于azure - 逻辑应用标准工作流触发器失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73054386/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com