Python api call runs fine on local machine but fails when run on Azure VM

144 views Asked by At

I have a Python App Utilizing Azure Vision API. I send an image to Azure Vision-OCR and read the output from there. The usual response is as follows:

**{'status': 'succeeded', 'createdDateTime': '2020-11-20T05:07:46Z', 'lastUpdatedDateTime': '2020-11-20T05:07:46Z', 'analyzeResult': {'version': '3.0.0', 'readResults': [{'page': 1, 'angle': 0, 'width': 500, 'height': 265, 'unit': 'pixel', 'lines': []}]}}** 

When I run the same app on azure and the same call is made from the python app, it returns a response as follows:

**{'status': 'running', 'createdDateTime': '2020-11-23T09:23:09Z', 'lastUpdatedDateTime': '2020-11-23T09:23:09Z'}**

I don't get a status for success and the analyzeResult is non existent. What could be done to resolve this issue?

0

There are 0 answers