WSO2 API Manager suspends your API if the endpoint of your API cannot be reached. The default suspension time is 30 seconds. Any request to your API will not be able to reach your endpoint for 30 seconds and will return an error message, as shown below.
To prevent or turn off API suspension, do the following:
- Log into API Publisher (
https://<HostName>:9443/publisher). Select your API and click Edit API.
- In the Implement tab, click the cogwheel icon next to the endpoint you want to re-configure.
- In the dialog box that appears, change Initial Duration and Max Duration. To turn off suspension, set both values to zero.
- Click Save and re-publish the API.
For more details on creating and publishing an API, see Create and Publish an API.
To avoid backend endpoint suspension,
- Navigate to the
- Open the configuration file of the API that has to be prevented from being suspended. (e.g.
Add the following configurations:
For more details on configuring different timeouts, see Timeout configurations for an API call in the Performance Tuning guide.