What Are the Possible Causes If a Backend Service Fails to Be Invoked or the Invocation Times Out?
The following table lists the possible causes if a backend service fails to be invoked or the invocation times out.
| Possible Cause | Solution |
|---|---|
| The backend service address is incorrect. | Change the backend service address in the API definition. If the domain name is used, ensure that the domain name can be correctly resolved to the IP address of the backend service. |
| The timeout duration is incorrect. If a backend service fails to return a response within the configured timeout duration, API Gateway displays a message indicating that the backend service fails to be invoked. | Increase the backend timeout duration in the API definition. |
| If the backend address is an ECS address, the security group to which the ECS belongs may block the request in the inbound or outbound direction. | Check the security group to which the ECS belongs and ensure that the inbound and outbound port rules and protocols of this security group are correct. |
| The request protocol is incorrect. For example, the backend service uses HTTP, but HTTPS is selected on API Gateway. | Ensure that the protocol of the registered API is the same as that of the backend service. |
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.