500 Internal Server Error coming while hitting azure invoice sync analyse endpoint

Aditya Panda 15 Reputation points
2024-10-24T11:45:15.14+00:00

while we are trying to hit azure invoice sync endpoint we are getting a 500 internal server error with the following error logs in azure-invoice pods
endpoint -> curl -v -X POST "http://vs-azure-invoice.model-inference-azure-ocr.svc.cluster.local:8080/formrecognizer/documentModels/prebuilt-invoice:syncAnalyze?api-version=2023-07-31" -H 'accept: */*' -H 'Content-Type: application/octet-stream' --data-binary '@/tmp/invoice_example.pdf'

fail: formrecognizerinvoice[0]
      Caught Endpoint POST API [Analyze] exception SubscriptionId='' RequestId='67174171-c93b-4113-8cc9-8ec2011f0f47' Timestamp='' buildVersion='1.2.1187.0-20241022.6-786a24c3#' hostId='vs-azure-invoice-5845796bb6-72n7x' serviceName='formrecognizerinvoice' namespace='vdi' Namesapce='vdi' operationId='67174171-c93b-4113-8cc9-8ec2011f0f47' errorResponseHttpStatus='500' errorCode='UnhandledEndpointException'

bt if we are trying to hit azure invoice async endpoint it is working
endpoint -> curl -v -X POST "http://vs-azure-invoice.model-inference-azure-ocr.svc.cluster.local:8080/formrecognizer/documentModels/prebuilt-invoice:analyze?api-version=2023-07-31" -H 'accept: */*' -H 'Content-Type: application/octet-stream' --data-binary '@/tmp/invoice_example.pdf'

any suggestions ?

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,721 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,908 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Persistent Coder 0 Reputation points
    2024-11-06T06:59:52.5066667+00:00

    Facing the same issue with general document api. Async endpoint works but sync endpoint throws

    errorResponseHttpStatus='500' errorCode='UnhandledEndpointException'

    Using mcr.microsoft.com/azure-cognitive-services/form-recognizer/document-3.0 along with

    mcr.microsoft.com/azure-cognitive-services/form-recognizer/layout-3.0

    I have checked the CPU and memory both are under control. Im not sure what additional configurations are required, i just followed the offical tutorial from here :

    https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/containers/install-run?view=doc-intel-4.0.0&tabs=general-document

    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.