Resource not found (eastus.api.cognitive.microsoft.com)

Andre Kassis 1 Reputation point
2021-12-19T17:24:21.9+00:00

Hi,

So yesterday I created my first speech resource in order to use it with the speaker verification SDK (https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/get-started-speaker-recognition?tabs=script&pivots=programming-language-curl). I have tried both the REST API and the C# code provided in this article, using my subscription key I got for the new resource and the endpoint https://eastus.api.cognitive.microsoft.com/sts/v1.0/issuetoken. However, I keep getting the same error. {"error":{"code":"404","message": "Resource not found"}}. I am pretty sure the resource exists as I can definitely see it on my dashboard. Additionally, it seems that just trying to access the endpoint itself in the browser (https://eastus.api.cognitive.microsoft.com) gives the same error. Any help would be appreciated.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,069 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,911 Reputation points Microsoft Employee Moderator
    2021-12-20T07:56:24.333+00:00

    @Andre Kassis I have tried to get a token using eastus region for my speech resource and the service seems to provide a token when requested. Here is the command I used:

    curl -v -X POST  "https://eastus.api.cognitive.microsoft.com/sts/v1.0/issueToken"  -H "Content-type: application/x-www-form-urlencoded"  -H "Content-Length: 0"  -H "Ocp-Apim-Subscription-Key: <your_subscription_key_here>"  
    

    Could you please check with above by replacing the placeholder with your key available from Azure portal for this resource? Also ensure the region is the same as shown in the Azure portal.

    Also, you will not be able to access the endpoint for any region or your resource endpoint from the browser.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.