I have uploaded some images to azure blob container for my azure ocr api to read the image and send back the output.
I have retrieved list of blobs from azure container using
blob_service.list_blobs().
Each of these retrieved blobs are now given to shared access method
generate_blob_shared_access_signature(container_name='ocr-images',blob_name=blob.name,permission=PublicAccess.OFF,expiry='se=2015-04-30T02%3A23%3A26Z',start='st=2015-04-29T22%3A18%3A26Z')
output of shared access method is a SAS token which is then given to
blob_service.make_blob_url(container_name='ocr-images',blob_name=blob.name, sas_token=sas)
for generating url for each image
The URL generated when passed to Azure ocr api, shows error
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url:https://westeurope.api.cognitive.microsoft.com/vision/v2.0/ocr?language=unk&detectOrientation=false
But when url is generated manually from azure portal, it works perfectly. Can some one help me with this issue?