A timeout occurred Error code 524 help

Hello everyone.
I keep on getting A timeout occurred Error code 524 on my website (fluentess.se it is not launched yet). Yesterday it worked perfectly fine. I read everything I could find on Cloudflare on this topic but it did not help much.
So I wonder if there is any step by step guide for “dummies” - what and where to click on to resolve it.
I am the only one working on the website, and I have no experience in programming or anything.

An HTTP Error 524 indicates a timeout after establishing a TCP connection and waiting for a response from your origin.

If your origin server does not return any data after 100 seconds, we will close the connection and serve a 524 error. This can happen if your server is simply taking too long because it has too much work to do - e.g. a large data query, or because the server is struggling for resources and cannot return any data in time. We recommend that you implement status polling of large HTTP processes to avoid hitting this error.

Here are the options we’d suggest to work around this:

  1. Run the scripts via a grey-clouded subdomain.

  2. Change the script so that it kicks off a long-running background process, and quickly returns a status which the browser can poll until the background process has completed, at which point the full response can be returned. This is the way most people do this type of activity these days - as keeping HTTP connections open for a long time is unreliable and can also be very taxing.

  3. For Enterprise zones only, you can increase the 524 timeout up to 6000 seconds using the proxy_read_timeout API endpoint or using a Cache Rule with the Proxy Read Timeout setting.

However, please be aware that increasing the timeout can potentially be an attack vector since Cloudflare is using more resources to maintain those connections. We do not recommend to simply jump to the maximum allowed: instead it’s better to try to aim for the minimum required by the application, or start by doubling the default 100 seconds value and then increment.

Hi. The same problem, how to make a grey-clouded subdomain ?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.