Why Is an Error Message with Error Code "APIG.0201" Displayed When an API Is Called?
If error message "Backend timeout." and error code "APIG.0201" are displayed when an API is called, the request times 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.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.