为什么API管理不触发逻辑应用程序?

问题描述 投票:0回答:1

我有一个逻辑应用程序,我试图将其放到API Management后面,但它根本不会触发。为了进行测试,我使用these steps创建了一个新的逻辑应用,并且遇到了同样的问题。

我通过在APIM门户中选择Logic App,设置沙箱后缀并添加无限产品来添加API。逻辑应用的原始网址为https:// {baseurl} .logic.azure.com / workflows / {workflow} / triggers / manual / paths / invoke / address / {postalCode}?api-version = 2016-10-01&sp =%2Ftriggers%2Fmanual%2Frun&sv = 1.0&sig = {sig},我要输入的api管理端点的URL是https:// {apim-name}。 azure-api.net/sandbox/manual/paths/invoke/address/{postalCode}

当我直接点击逻辑应用程序时,结果是Postal Code: {postalCode};当我点击api管理端点时,它仅返回带有200 HTTP代码的空结果。我可以看一下逻辑应用程序,看看它没有被触发。

还有其他问题吗?任何帮助,将不胜感激。

azure azure-logic-apps azure-api-management
1个回答
0
投票

我不知道您为什么得到202空结果,但我测试成功。请求APIM端点后(在APIM测试中都请求并在邮递员中请求),我得到了Postal Code: {postalCode}。在这里,我提供我的步骤供您参考。

1。我创建一个逻辑应用程序,如下所示:enter image description here

2。然后,我创建APIM并在其中配置逻辑应用程序URL。enter image description hereenter image description here

3。在APIM测试中单击“发送”按钮,得到如下所示的响应:enter image description here

4。在邮递员中请求APIM请求url时,也会获得结果成功。enter image description here

希望有帮助〜

© www.soinside.com 2019 - 2024. All rights reserved.