How To: Increase the API timeout value
Description
API Request timeout value is set by default to 30 seconds. If you want to change the API request timeout value in cases where you are getting timeouts (might be for a large set of data), you can increase the API request timeout value upto a maximum of 60 seconds.
Solution
API Request timeout value is set by default to 30 seconds. If you want to change the API request timeout value in cases where you are getting timeouts (might be for a large set of data), you can increase the API request timeout value upto a maximum of 60 seconds.
Solution
To increase the timeout value from 30 seconds to 60 seconds, do the following:
- Edit the /etc/php.ini file:
[root@cybersponse csadmin]# vi /etc/php.ini - In the /etc/php.ini file, replace the following line:
max_execution_time = 30
TO
max_execution_time = 60 - Restart php-fpm using the following command:
systemctl restart php-fpm
