从 azure APIM 调用时,REST API 服务返回空响应正文,状态码为 200 [英] REST API service when called from azure APIM returning empty response body with Status code 200

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆