Share via

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

Anonymous
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 Document Intelligence in Foundry Tools
Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform


1 answer

Sort by: Most helpful
  1. Persistent Coder 20 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

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.