Failed to call Azure OpenAI API: { "statusCode": 401, "message": "Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired." }

Ravi Modukuri 0 Reputation points
2024-09-13T12:54:01.1433333+00:00

Failed to call Azure OpenAI API: { "statusCode": 401, "message": "Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired." }

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,946 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel FANG 80 Reputation points
    2024-09-14T04:13:00.86+00:00

    It could also be a delay for the service to be ready and servicing requests if it is a new resource you just created. Checking all the URLs and API keys and try after 1h. The other thing is that also try the secondary key, there is once that primary key not working for us but secondary key actually worked.

    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.