Azure-cognitive-services giving "404 resource not found"
Asked Answered
M

1

7

I have subscribed "Azure Cognitive Services" and I tried to convert language translation from English to Danish. I have made a post request with Postman but every time I received the below error.

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

My endpoint what I can see in Azure dashboard is https://uksouth.api.cognitive.microsoft.com/translate?api-version=3.0&from=en&to=da

and I have posted both Ocp-Apim-Subscription-Key and Ocp-Apim-Subscription-Region keys in the header section.

Why am I getting 404 error? Any thoughts?

Mingo answered 9/9, 2019 at 14:58 Comment(0)
D
9

For text translator API V3.0, you can find the base URL here

If you are in Europe , you can try this endpoint :

api-eur.cognitive.microsofttranslator.com

enter image description here

Denunciate answered 10/9, 2019 at 8:16 Comment(2)
Along with the URL in your answer, I have to add both Ocp-Apim-Subscription-Key="..." and Ocp-Apim-Subscription-Region="uksouth" in the request header to get the result.Mingo
@Mingo Glad to know that your issue has been solved , pls mark me if my suggestions are helpful , thanks !Denunciate

© 2022 - 2024 — McMap. All rights reserved.