You are integrating Azure AI Vision Read API into a high-throughput workflow. You receive an HTTP 202 Accepted response. What action should your application take next?
Trap 1: Switch to synchronous Read API endpoint.
Image Analysis 4.0 Read is an asynchronous operation.
Trap 2: Parse the response body directly for the extracted text results.
An HTTP 202 response body does not contain the final OCR payload.
Trap 3: Immediately retry the POST request with an increased timeout value.
Retrying the initial POST will start a new job instead of checking the existing one.
- A
Poll the URL specified in the Operation-Location response header until the status is succeeded.
Asynchronous OCR operations require polling the Operation-Location endpoint.
- B
Switch to synchronous Read API endpoint.
Why wrong: Image Analysis 4.0 Read is an asynchronous operation.
- C
Parse the response body directly for the extracted text results.
Why wrong: An HTTP 202 response body does not contain the final OCR payload.
- D
Immediately retry the POST request with an increased timeout value.
Why wrong: Retrying the initial POST will start a new job instead of checking the existing one.