question

NitinGupta-1859 avatar image
2 Votes"
NitinGupta-1859 asked NitinGupta-1859 commented

Computer Vision Read API returning the operation location as null

Hi,
I am using Computer Vision Read API and then Analyse API to extract text from images.
I followed this article in Java to set up the integration.
https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/quickstarts-sdk/client-library?tabs=visual-studio&pivots=programming-language-java

My code was working fine until Friday.
Since yesterday, the Read API is not returning the operation location. It's being returned as null when I debugged.
The same image which was working earlier is not working now.
I am downloading the image, converting it to a byte array and then passing it to the method provided in the article.
Same process as mentioned in the article except that my images are not local and I can't pass the URL because images are authenticated. Please help.
130206-screenshot-2021-09-08-at-62149-pm.png





azure-computer-vision
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Is anybody else facing the same issue?
Can azure team help?

1 Vote 1 ·

@NitinGupta-1859 Thanks for the question. Can you please add more details about the Read version that you are trying. Please use the Read API as mentioned in the document. We are able to see the Operation-Location using the Read API v3.2 and able to get the results. Using the client library issue we are checking with the product team.


0 Votes 0 ·

FYI, everything was working 2 days back. We didn't change anything in the code and it suddenly stopped working. Image Analysis APIs are working fine for the same image but not the read API.

0 Votes 0 ·
Show more comments

@ramr-msft - I am using the latest client library version 1.0.8-beta and I am not sure which API version it is using internally. I feel it should be the latest version. The main point to notice is, everything was working perfectly fine until last Friday.

0 Votes 0 ·
NitinGupta-1859 avatar image
1 Vote"
NitinGupta-1859 answered TeresaUlloa-7101 commented

I got it working through a tweak. I changed the code to directly call the read API version 3.2 through REST call and then use computer vision client library methods to read the results using the operation location received from the read rest call. So it is working with a mix of both i.e directly hitting Read REST API call (not using library methods) and using the analyse method provided by the library.

I didn't want to use the REST call directly because I thought the library should take care of the all heavy lifting but seems like the library is having some issue with Read API calls.
I used the same byte array for the REST APIs and it works.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello, the same thing happened to me, I had to implement your same solution.

0 Votes 0 ·
RiccardoRinaldini-2504 avatar image
0 Votes"
RiccardoRinaldini-2504 answered NitinGupta-1859 commented

Hi, we have the same problem, since some days all the call with the Java client return null operation location, there are news?


Riccardo

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

No response from the Azure team yet. I implemented a different solution. See my comment above.

1 Vote 1 ·