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:
- 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.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot