Before getting to development, I thought I'd test the Post Read and Get Read Result via the console API.
Successfully received response from all the other computer vision API ( Analyze Image, Describe Image ... ).
When trying the same with the Read, using this example pdf https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf
I do get a success response message, but when I try to use the returned apim-request-id: e4a6a9a4-e8c0-45a5-bc46-53d62308b661
( or any other request id ), I keep getting,
"Operation ID is invalid, expired or the results matching this operationId have been deleted"
Example: Read response:
Operation-Location: https://eastus.api.cognitive.microsoft.com/vision/v3.0/read/analyzeResults/e4a6a9a4-e8c0-45a5-bc46-53d62308b661
x-envoy-upstream-service-time: 229
CSP-Billing-Usage: CognitiveServices.ComputerVision.Transaction=1
apim-request-id: e4a6a9a4-e8c0-45a5-bc46-53d62308b661
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
Date: Tue, 30 Jun 2020 08:14:18 GMT
Content-Length: 0
GET https://eastus.api.cognitive.microsoft.com/vision/v3.0-preview/read/analyzeResults/e4a6a9a4-e8c0-45a5-bc46-53d62308b661 HTTP/1.1
Host: eastus.api.cognitive.microsoft.com
Ocp-Apim-Subscription-Key: ••••••••••••••••••••••••••••••••
Transfer-Encoding: chunked
x-envoy-upstream-service-time: 13
CSP-Billing-Usage: CognitiveServices.ComputerVision.Transaction=1
apim-request-id: b1dfcf4e-f820-4c21-8198-d15696eb12b4
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
Date: Tue, 30 Jun 2020 08:14:49 GMT
Content-Type: application/json; charset=utf-8
{
"error": {
"code": "BadArgument",
"message": "Operation ID is invalid, expired or the results matching this operationId have been deleted."
}
}
I have tried this with both Free and Paid version, eastus and westus location, still receiving the Operation ID invalid response.
Any suggestion?