从 azure APIM 调用时,REST API 服务返回空响应正文,状态码为 200

编程入门 行业动态 更新时间:2024-10-10 04:25:53
本文介绍了从 azure APIM 调用时,REST API 服务返回空响应正文,状态码为 200的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已在 Azure API 管理中添加了我的 REST api 服务.我已按照此链接中给出的所有步骤 Azure APIM.API 在本地运行良好.通过发布的 URL 访问时,它也可以工作.

I have added my REST api service in Azure API Management. I have followed all the steps given in this link Azure APIM. API works fine in local. It also works when accessed through published URL.

我还添加了 OAuth2.0 安全性,并且可以通过.

I have added OAuth2.0 security as well which is passing through fine.

我的问题是当我尝试通过 APIM 发布的 URL 访问操作时,服务给出的响应 200 内容为空.

My issue is When i try to access the operation through APIM published URL, the service is giving response 200 with empty content.

有人可以帮忙吗.

推荐答案

当人们无意中删除了顶级策略并删除了适用于所有api上的所有操作的主要转发请求策略时,就会出现此问题.只需单击添加策略"按钮即可在顶级范围内重新添加默认策略.

This problem occurs when people unintentionally delete the top level policy and remove the main forward-request policy that applies to all operations on all apis. Simply click the Add policy button to re-add the default policy at the top level scope.

更多推荐

从 azure APIM 调用时,REST API 服务返回空响应正文,状态码为 200

本文发布于:2023-11-26 21:32:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635269.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:状态   正文   APIM   azure   REST

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!