I got the error message "401, ReasonPhrase: 'PermissionDenied'"

2023-08-21T14:05:05.6866667+00:00

When I write a word to translate in the cognitive service, using DOTNET RUN, i get the following message:
StatusCode: 401, ReasonPhrase: 'PermissionDenied', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:

{

apim-request-id: eec62416-a9b6-4bc4-b42d-63cdeee417b6

Date: Mon, 21 Aug 2023 13:57:39 GMT

Content-Length: 224

Content-Type: application/json

}

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,464 questions
{count} vote

2 answers

Sort by: Most helpful
  1. 2023-08-21T14:08:30.2833333+00:00

    This problem was solved.

    1 person found this answer helpful.

  2. VasaviLankipalle-MSFT 15,006 Reputation points
    2023-08-21T22:25:56.18+00:00

    Hello @JOSÉ MÁRCIO FERREIRA VELASCO VELASCO , I'm glad that you were able to resolve your issue. You can share you solution if interested so that others experiencing the same thing can easily reference this!

    0 comments No comments