I get this too - Cloudflare 504 error after a short while despite setting
timeout: 180
In my vapor.yml file
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello
I'm facing an issue with my application, I'm using laravel vapor with the following configuration
warm: 10
memory: 2048
cli-memory: 512
timeout: 300
runtime: php-7.4
I set the timeout to 5 minutes but all request that executes in more than 30 seconds is failing with error 504 Gateway Timeout
hope you could help me fix that
Received this reply from Vapor support when I asked:
There are hard limits set by AWS on requests. You need to switch to using queued jobs for tasks that require more than 30 seconds.
Please or to participate in this conversation.