Help Center> Optical Character Recognition> FAQs> Error Code> How Do I Handle the Error APIG.0201?
Updated on 2023-10-26 GMT+08:00

How Do I Handle the Error APIG.0201?

If error message "Backend timeout." and error code "APIG.0201" are displayed when you call an OCR API, the request timed out.

To rectify the fault, use a tool, such as Postman, to call the service and check whether the call is successful. If the call is successful, the service API is normal. Perform the following steps to proceed:

  1. Check whether the original API call requests are excessively frequent.

    If they are, use the retry mechanism to rectify the fault by checking the return value in the code and retrying the requests after a short period of time (for example, 2 to 5 seconds). Alternatively, check whether the results of the previous request were returned at the backend. If they were, send the next request. This helps prevent excessively frequent requests.

  2. Check whether the image is too large or the network delay is too long.

    If the image is too large, compress the image, but make sure the image definition is presered. If there is too much network delay, you can increase the network transmission speed.

If you cannot rectify the fault, contact us.

Error Code FAQs

more