AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
504 gateway time out mean11/20/2023 ![]() For Apache on Local this is not (yet) the case there it is still the default 60 sec. This applies to anybody using Local and doing PHP debugging for any website.įor nginx in Local you already have taken this into account by changing the default timeout value to 1200 sec. Then, while you are investigating the value of variables, maybe execute some command, correct some code, set another breakpoint etc., a gateway timeout will occur when you are not quick enough continuing the script execution (default 60 sec, see this nginx documentation and this Apache documentation). While in PhpStorm or VS Code (or some similar app), when you have set a breakpoint in a script and ran that script till the breakpoint is reached, the execution of that script stops. This problem is about debugging of scripts on the server. This is NOT about a problem that I need a long timeout for a specific site. The default timeout value should be good enough. Thank you for your reply and for looking into this. From the googling I did, it doesn’t seem like the timeout setting is something that can just be toggled off, so I would imagine that if you didn’t experience this in Desktop server, it’s probably because they just have a very high timeout set as the default.Įither way, I bet there isn’t an easy fix, and the quickest thing to do is to set a high timeout for any of these sites that you need a high timeout on. I was able to replicate on my Mac, which means that it isn’t specific to Windows. You’ve verified that’s the case by increasing the timeout. So basically, this is telling us that something is tired of waiting for a response and gives up by sending a 504. The HyperText Transfer Protocol (HTTP) 504 Gateway Timeout server error response code indicates that the server, while acting as a gateway or proxy, did not get a response in time from the upstream server that it needed in order to complete the request. With 5xx errors, I always like to refresh in my mind what they specifically mean. See this Community Forum post for instructions on how to do so: What Operating System (OS) and OS version is being used?Īttach the Local Log. Local 5.10.3+5332 (system setup), but it also happened on 5.10.1, a few days ago For step-wise debugging this is quite inconvenient. There is no recovery from this status, other than starting all over again (reload the web page). ![]() Don’t leave the breakpoint but wait 60 seconds: the browser produces a 504 gateway timeout error.VS Code shows that the breakpoint is hit.Reload the webpage in the browser, causing functions.php to be run.Set a breakpoint in, for example my theme’s functions.php file.Open a page from this website in a browser. ![]()
0 Comments
Read More
Leave a Reply. |