I am using Azure Form Recognizer API version v2.1-preview.2. I am using a custom model which I have trained already.
I used https://{Endpoint}/formrecognizer/v2.1-preview.2/custom/models/{model ID} and get the response 202 properly with header details like apim-request-id and Operation-Location.
However when I use the apim-request-id as response Id in my next API https://{Endpoint}/formrecognizer/v2.1-preview.2/custom/models/{model ID}/analyze/{response id} , replacing response id with apim-request-id I am getting error
{
"error": {
"code": "1020",
"message": "Analyze operation results not found, 'analyzeResultId=2fa30cb9-0c0a-4093-aebe-8c80bb5b1de2'."
}
}
However, using the complete Operation-Location URL received in my first call I am able to get the results. I could see two different Ids, one in response and other in operation location URL.
Is this a bug or I am doing something wrong with respect to result-id?
Sachin

