【问题标题】:404 Error from Azure Front Door and APIM.How can I solve this problem?来自 Azure Front Door 和 APIM 的 404 错误。我该如何解决这个问题?
【发布时间】:2021-12-24 02:56:37
【问题描述】:

我想将 APIM 链接到 Azure Front Door。 因此,在 Azure Front Door 中,我将 Front Door 后端主机设置为 APIM Gateway URL。 HEALTH PRORVE 的路径是“/” 而且,我访问了 Front Door URL。 然后显示“{”statusCode”: 404, “message”: “Resource not found”}”。 APIM有问题吗? 对不起,我的英语不好。 请帮帮我。

【问题讨论】:

  • 请澄清您的具体问题或提供更多详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: azure azure-api-management azure-front-door


【解决方案1】:

要调试{"statusCode": 404, "message": "Resource not found"} 错误,请尝试以下方法:

您可以使用API Inspector获取跟踪调用:

1.登录到 Azure 门户,然后导航到您的 API 管理实例。

2. 选择 API。

3.从您的 API 列表中选择演示会议 API。

4.选择测试标签。

5. 选择 GetSpeakers 操作。

6. 确认 HTTP 请求标头包含 Ocp-Apim-Trace: True 和 Ocp-Apim-Subscription-Key 的有效值。如果不是,请选择 + 添加页眉以添加页眉。

7. 选择发送以进行 API 调用。

您可以参考Getting error when i tried to access API URLUnable to access newly api service from developer portal in Azure api management

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-11-14
    • 2013-11-23
    • 2021-07-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-18
    • 2022-11-03
    相关资源
    最近更新 更多