Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure-cognitive-services giving "404 resource not found"

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?

like image 537
Simant Avatar asked Jan 01 '23 16:01

Simant


1 Answers

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

like image 178
Stanley Gong Avatar answered Feb 04 '23 16:02

Stanley Gong