Gateway Timeout The gateway did not receive a timely response from the upstream server or application

I scrape data from a site to my wordpress site (installed from hestia panel) my site displays this error “Timeout Gateway: The gateway did not receive a timely response from the upstream server or application.”
Help me. I already tried to modify the files /etc/php/8.2/fpm/php-fpm.conf and /etc/php/8.2/fpm/pool.d/www.conf and /etc/apache2/apache2.conf but it did not work.