Computer Vision Read API returning the operation location as null

Nitin Gupta 31 Reputation points
2021-09-08T12:52:59.907+00:00

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://learn.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
Azure Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
331 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Nitin Gupta 31 Reputation points
    2021-09-09T19:26:17.47+00:00

    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 person found this answer helpful.

  2. Riccardo Rinaldini 1 Reputation point
    2021-09-23T10:45:28.41+00:00

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

    Riccardo