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

How Do I Handle the Error APIG.0308?

If error message "The throttling threshold has been reached: policy user over ratelimit,limit:XX,time:1 minute" and error code "APIG.0308" are displayed when you call an OCR API, the maximum number of concurrent API calls specific to the service, for example, XX calls per minute, has been reached.

Rectify the fault using either of the following methods:

  1. 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).
  2. 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.

If you need higher concurrency, contact us.