Inquiry Regarding 404 Error in Shelf Product Recognition API

Anuja Baby 0 Reputation points
2023-11-28T15:52:01.2066667+00:00

I received a 404 error from the Shelf Product Recognition using the pretrained model.

Upon initiating a POST request using the following command:

curl.exe -H "Ocp-Apim-Subscription-Key: XXXXX" -H "Content-Type: application/json" "XXXXX/computervision/productrecognition/ms-pretrained-product-detection/runs/test1?api-version=2023-04-01-preview" -d "{ 'url':'image_url' }"

I encountered a 404 error status.

Upon further investigation, observed that the PUT request creates a queue using the run_name.

PUT request

curl.exe -X PUT -H "Ocp-Apim-Subscription-Key: XXXXX" -H "Content-Type: application/json" "XXXX/computervision/productrecognition/ms-pretrained-product-detection/runs/test1?api-version=2023-04-01-preview" -d "{'url':'imageurl'}"

Then when I called the same API with a GET method(with the same run_name), it provided the expected results.

GET request

curl.exe -H "Ocp-Apim-Subscription-Key: XXXX" -H "Content-Type: application/json" "XXXX/computervision/productrecognition/ms-pretrained-product-detection/runs/test1?api-version=2023-04-01-preview"

I think is this behavior due to the asynchronous nature of the operation. Where can I find documentation detailing this asynchronous behavior and providing information on the expected status codes in the subsequent GET request (e.g., success, running, etc.)?

Is there anything wrong with my understanding, as I couldn't find specific documentation for this async behavior?

Azure Computer Vision
Azure Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
326 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,007 questions
{count} votes