Document Intelligence analysis is taking forever
- Package Name: azure-ai-documentintelligence==1.0.0b2
- Operating System: Windows
- Python Version: 3.10.9
Describe the bug Running the following code which uses a custom classifier and it takes forever to complete. Same goes for the studio.
To Reproduce Steps to reproduce the behavior:
from azure.core.credentials import AzureKeyCredential
from azure.ai.documentintelligence import DocumentIntelligenceClient
from azure.ai.documentintelligence.models import ClassifyDocumentRequest
document_intelligence_client = DocumentIntelligenceClient(
endpoint='my-document-intelligence-endpoint',
credential=AzureKeyCredential(doc_intel_key)
)
result = document_intelligence_client.begin_classify_document(
classifier_id='my-classifier-id',
classify_request=ClassifyDocumentRequest(
url_source='the-blob-sas-url'
),
split='auto'
).result()
Expected behavior Classification should take at most 7 to 8 seconds.
Thank you for your feedback. Tagging and routing to the team member best able to assist.
I'm having issues as well with dotnet sdk using blob url with sas token. taking the generated url pulls down the image from my browser, but no response when processing from the SDK. get an error when trying the document intelligence studio with the same url saying it can't access the url.
@jricke Thanks for your contact, we'll investigate asap! You attached the timeout issue in sovereign clouds, I'm wondering is this issue also happened in sovereign clouds? We have a similar test on public cloud, but don't see the issue.
@bojunehsu It's hanging when classifying document using SDK and studio. it looks like an issue in service. Can you help to take a look?
Hi @galvangoh. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bojunehsu @vkurpad.
Hi @YalinLi0312 , the service seems to be working as intended now. For a couple of days earlier this week, the service was not coming back with a response. I just processed a document and it came back right away.
@jricke Glad to hear the issue is resolved, thank you!