Azure apim自定义连接器返回电源应用中的空体响应

发布于 2025-02-03 08:39:28 字数 487 浏览 4 评论 0原文

我正在通过向导创建一个Power Apps中的自定义连接器,以调用Azure APIM中的简单GET操作。我可以使用Postman,Fiddler和Curl将API罚款。但是,当我尝试使用“测试”选项卡测试连接器时,我会得到200个好的,但是响应主体是空的:

值得一提的是,对于Azure APIM中的API,此问题仅出现空白。如果我击中了Azure App Service托管的后端API,而无需通过Azure APIM,则会收到响应主体。我已经在互联网上与其他公共API进行了测试,这些API也可以正常运行。空响应的问题似乎与Power Apps和Azure APIM之间的集成有关。

任何援助都将受到高度赞赏。

I’m going through the wizard to create a custom connector in Power Apps to call a simple Get operation in Azure APIM. I can call the API fine using Postman, Fiddler and CURL. However, when I try to test the connector using the test tab I’m getting a 200 OK but the response body is empty:
enter image description here

It’s worth mentioning that this issue, with empty response body, occurs only for APIs in Azure APIM. If I hit the backend API, hosted in Azure App Service, without going through Azure APIM I’m receiving a response body. I have tested with other public APIs on the internet which works fine as well. The problem with empty response seems to have something to do with the integration between Power Apps and Azure APIM.

Any assistance is highly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉世弥音 2025-02-10 08:39:28

在Azure应用程序洞察日志的帮助下,我发现这对CORS进行了涂抹。要解决问题,我将 https://flow.microsoft.com 来自PowerApps测试控制台的呼叫要通过:

”在此处输入图像描述”

With the help of Azure Application Insights logs, I discovered that this is ralated to CORS. To resolve the issue, I added the https://flow.microsoft.com to Azure APIM CORS policy to allow calls from the PowerApps test console to come through, like so:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文