M
M
magogo2019-03-23 06:21:53
Nginx
magogo, 2019-03-23 06:21:53

Error 504, but the script ran. What could it be?

AJAX request I turn to the php script, it first runs for a long time and at the end of the script enters the data into the database. The data was entered into the database, but the page was still loading and displayed a 504 Gateway Timeout error. What could it be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2019-03-23
@PavelMonro

It could be 504 Gateway Timeout.
Increase the timeouts for executing the script on the hosting.

fastcgi_send_timeout 300;
fastcgi_read_timeout 300;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question