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

编程入门 行业动态 更新时间:2024-10-22 04:24:50
本文介绍了从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-13 00:47:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582948.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:状态   正文   APIM   azure   REST

发布评论

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

>www.elefans.com

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