Hello Christoph Zeiner,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you have Infinite Processing, without errors in Azure Document Intelligence.
Since your software is already in use by customers, I will advise you to quickly implement a retry mechanism that waits for the specified retry-after
period before attempting the request again, in similar to this:
import time
from azure.core.exceptions import ServiceRequestError
def analyze_document_with_retry(client, model, data, max_retries=5):
retries = 0
while retries < max_retries:
try:
poller = client.begin_analyze_document(model, data)
result = poller.result()
return result
except ServiceRequestError as e:
retries += 1
retry_after = int(e.response.headers.get('retry-after', 5))
time.sleep(retry_after)
if retries == max_retries:
raise e
document_analysis_client = DocumentAnalysisClient(endpoint=doc_intelligence_endpoint, credential=AzureKeyCredential(doc_intelligence_key))
result = analyze_document_with_retry(document_analysis_client, "prebuilt-read", data)
Now, to troubleshoot:
Consider testing with the latest version of the API version you are using (2023-07-31) is fully compatible https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/concept-read?view=doc-intel-4.0.0
Try to increase the timeout settings in your client configuration to allow more time for the OCR process to complete and check for service outage or ongoing maintenance. https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/how-to-guides/use-sdk-rest-api?view=doc-intel-4.0.0
Other things to do is to check the document size and log information https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/choose-model-feature?view=doc-intel-4.0.0 and https://learn.microsoft.com/en-us/python/api/overview/azure/ai-documentintelligence-readme?view=azure-python-preview
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.