Inquiry Regarding 404 Error in Shelf Product Recognition API
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?