Request Timed Out
Symptom
The prediction request times out, and the error {"error_code": "ModelArts.4205","error_msg":"Connection time out."} is reported.
Possible Causes
If a request times out, there is a high probability that the request is intercepted by API Gateway. Check the API Gateway and model.
Solution
- Run the :curl -kv {Prediction address} command on the local host to check whether the API Gateway is reachable. If the request timed out, check the local firewall, proxy, and network configurations.
- Check whether the model is started or the duration for the model to process a single request. Due to the limitation of API Gateway, the duration of a single prediction cannot exceed 40s. If the duration exceeds 40s, the system will return a timeout error by default.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.