Quickstart: Optical character recognition (OCR) Internal Server Error

Josh R 5 Reputation points
2024-11-06T06:47:01.6033333+00:00

I am trying to use Azure AI Vision to do OCR on some documents. I followed the guide found here and input my key and endpoint appropriately. The code runs, however it responds with:

Python\Python312\site-packages\azure\cognitiveservices\vision\computervision\operations_computer_vision_client_operations.py", line 848, in read

raise models.ComputerVisionOcrErrorException(self._deserialize, response)

azure.cognitiveservices.vision.computervision.models._models_py3.ComputerVisionOcrErrorException: Internal server error

Since it is an internal server error, I am not really sure how to continue troubleshooting this issue.

In another version of the code I was writing without copying the code directly from a quickstart, I was getting the error: "statusCode": 500, "message": "Internal server error", "activityId": "[ID was here]"

I would like to begin implementing a POC that I have running using non-Microsoft resources in Azure, but I am a bit stuck at the moment.

Any thoughts or guidance?

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,116 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SriLakshmi C 6,250 Reputation points Microsoft External Staff Moderator
    2024-11-06T09:41:06.47+00:00

    Hi Josh R,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer

    Ask: Quickstart: Optical character recognition (OCR) Internal Server Error

    Solution: I deleted the resource group and redeployed in another location. It works now.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information. 

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.


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.