【问题标题】:Azure-cognitive-services giving "404 resource not found"Azure-cognitive-services 给出“404 资源未找到”
【发布时间】:2020-01-11 08:56:01
【问题描述】:

我订阅了“Azure 认知服务”,并尝试将语言翻译从英语转换为丹麦语。我已经向 Postman 发出了发帖请求,但每次我都收到以下错误。

{
    "error": {
        "code": "404",
        "message": "Resource not found"
    }
}

我在 Azure 仪表板中看到的端点是 https://uksouth.api.cognitive.microsoft.com/translate?api-version=3.0&from=en&to=da

我已经在标题部分发布了 Ocp-Apim-Subscription-KeyOcp-Apim-Subscription-Region 键。

为什么会出现 404 错误?有什么想法吗?

【问题讨论】:

    标签: microsoft-cognitive azure-cognitive-services


    【解决方案1】:

    对于文本翻译 API V3.0,您可以找到基本 URL here

    如果你在欧洲,你可以试试这个端点:

    api-eur.cognitive.microsofttranslator.com
    

    【讨论】:

    • 连同您回答中的 URL,我必须在请求标头中同时添加 Ocp-Apim-Subscription-Key="..." 和 Ocp-Apim-Subscription-Region="uksouth"得到结果。
    • @Simant 很高兴知道您的问题已经解决,如果我的建议有帮助请标记我,谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-16
    • 2020-12-12
    • 2016-07-13
    • 1970-01-01
    • 1970-01-01
    • 2013-11-13
    相关资源
    最近更新 更多