I am using imageAnalysis, mainly trying to use ocr to get text from image. I followed this tutorial and everything worked perfectly until recently.
https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40?tabs=visual-studio%2Clinux&pivots=programming-language-python
My code worked before and I made no change but suddenly got the following error:
Analysis failed.
Error reason: ImageAnalysisErrorReason.CONNECTION_FAILURE
Error code: 3
Error message: Failed with error: HTTPAPI_OPEN_REQUEST_FAILED [0x3 | 2550]
POST https://xxxx.cognitiveservices.azure.com/computervision/imageanalysis:analyze?api-version=2023-02-01-preview&features=read
I am using this inside docker in my aws EC2 server. I installed the lastest version azure-ai-vision==0.15.1b1
I can use curl to call rest-api of the same resource and get successful response inside the docker container so I guess there should be no problem with connection or firewall problems.