Hızlı yanıt: kod örneği
I recently experienced this issue on one of my app's that was making an ambitious call to it's Firebase Database - it was grabbing a very large record, which took over 60 seconds (the default timeout) to retrieve.For those experiencing this error, that have access to their app / site's hosting environment, which is proxying through NGINX, this issue can be fixed by extending the timeout for API requests.In your or add the following variables:Run to check the syntax, and then .This should effectively quadruple the time before NGINX will timeout your API requests (the default being 60 seconds, our new timeout being 240 seconds).Hope this helps!
/etc/nginx/sites-available/default
/etc/nginx/nginx.conf
proxy_connect_timeout 240;proxy_send_timeout 240;proxy_read_timeout 240;send_timeout 240;
sudo nginx -t
sudo service nginx restart