本文介绍了从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的空响应正文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 06:48