Intermittent 401001 Error in Azure Translator API Despite Valid Access Token

Tamil Selvam 5 Reputation points
2025-07-16T11:43:38.8633333+00:00

Hi Azure team,

I’m facing an intermittent issue while integrating the Azure AI Text Translator API with a backend application using a token generated via Azure AD client credentials flow.

🔍 Problem:

The access token is retrieved successfully using an Azure AD App Registration (client credentials flow). The token is valid for 60 minutes and the claims are correct (aud, nbf, exp). However, the Translator API calls behave inconsistently:

Azure AI Translator
Azure AI Translator
An Azure service to easily conduct machine translation with a simple REST API call.
{count} vote

1 answer

Sort by: Most helpful
  1. Kalle Gerarts 40 Reputation points
    2025-08-07T12:30:50.4266667+00:00

    Hello, interesting that someone is facing the same problems.
    It's almost the same environment but my Bearer Token is generated by "PublicClientApplicationBuilder" for a GraphClient in a legacy application.
    A rest api call of the Translator is running from time to time but mostly does not.
    Same behaviour if I try to run the api call with the same bearer token in postman.
    But processing a chat completion call (as well in the application as in postman) with the same bearer token is running all the time.
    I'm sure the bearer token is correct!
    But I do not know what is going wrong most of the time?

    0 comments No comments

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.