This problem was solved.
I got the error message "401, ReasonPhrase: 'PermissionDenied'"
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
}
2 answers
Sort by: Most helpful
-
JOSÉ MÁRCIO FERREIRA VELASCO VELASCO 10 Reputation points
2023-08-21T14:08:30.2833333+00:00 -
VasaviLankipalle-MSFT 18,296 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!