skip to Main Content

Azure openai error 401, "Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired

Here is my python code, and encountered run time error, Error: 401 { "statusCode": 401, "message": "Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired." } import requests # Azure OpenAI Configuration API_KEY = "xxxxxx" #…

VIEW QUESTION

azure document intelligence API PRebuilt-layout with KeyValuePairs feature (C# SDK)

The following code is throwing an Invalid argument error on KeyValuePairs while keyValuePairs feature exists and is valid. Can you help explain? AnalyzeDocumentOperation operation = await client.AnalyzeDocumentFromUriAsync(WaitUntil.Completed, "prebuilt-layout", fileUri, new AnalyzeDocumentOptions() { Features = { DocumentAnalysisFeature.KeyValuePairs } }); Error message:…

VIEW QUESTION
Back To Top
Search