Computer Vision Read API returning the operation location as null

Nitin Gupta 31 Reputation points

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.

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.

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

    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

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