Why does my Render app time out after 30 seconds?
If a request on your Render web service fails at about 30 seconds, you're almost never hitting a Render limit, because Render web services allow HTTP responses to take up to 100 minutes. The usual cause is your app server's own worker timeout, most often Gunicorn's --timeout setting. Per the Gunicorn settings documentation, the default worker timeout is 30 seconds.
Documentation checked: Render between 2026-09-11 and 2026-11-25, github.com between 2026-11-23 and 2026-11-25, uvicorn.dev on 2026-11-25, gunicorn.org on 2026-11-25, uvicorn.org on 2026-11-25.
Render's limit is 100 minutes
Render's documented HTTP response limit is 100 minutes, so a repeatable 30-second failure is not that limit. If you use Gunicorn, check for worker-timeout logs first. Otherwise, check client, dependency and proxy timeouts. See the Render vs. Heroku comparison.
Worker killed or proxy closed: the log signatures
Symptom | Timing | Log signature | Likely cause |
|---|---|---|---|
Request errors or drops mid-response | The same interval on every failure, matching the app server's configured worker timeout | For example, the app server logs a worker timeout for that worker's process ID, then logs a new worker booting (exact wording varies by app server) | App server killed the worker |
Request closes after a long wait | Near 100 minutes | No worker timeout or restart lines for that request | Consistent with Render's response limit; requires confirmation |
Two signals tell the cases apart:
- Elapsed time: A failure at a fixed interval that matches your app server's timeout points to the worker. A failure near 100 minutes is consistent with Render's limit.
- Lines after the failure: A timeout line followed by worker boot lines confirms that the app server killed the worker. For the proxy case, your logs can only show that no worker timeout occurred. A failure near 100 minutes is consistent with Render's limit, but confirm it before you rule out client and proxy timeouts.
A failure that ends well before Render's 100-minute limit, with no worker timeout lines, matches neither signature. In that case, something outside the app server's worker timeout sets the cutoff. Check these in order: a timeout in the client that sent the request, a timeout on an upstream call your code makes (for example, an HTTP client or database driver timeout), and any proxy or CDN you run in front of your Render service.
If failures line up with a deploy or restart, Render sends SIGTERM to the old instance and then SIGKILL after its shutdown delay, which defaults to 30 seconds.
Raise Gunicorn's timeout
Per the Gunicorn settings documentation, --timeout defaults to 30 seconds. Gunicorn's timeout tracks how long a worker goes without checking in with the Gunicorn master process. With sync workers, this matches request duration. With async worker classes, it doesn't map directly to a single request's duration.
Set the timeout above your slowest expected request, but keep it bounded so Gunicorn can still restart hung workers. This example sets the timeout in the start command for an app that uses Gunicorn's default sync workers:
If you run Uvicorn workers under Gunicorn with -k uvicorn_worker.UvicornWorker (from the uvicorn-worker package), this timeout isn't tied to request duration. See Uvicorn timeouts for what applies in that case.
You can change the start command for an existing service from its Settings page. Gunicorn also reads the setting from a gunicorn.conf.py file in the directory where you run Gunicorn:
You can also set GUNICORN_CMD_ARGS as an environment variable on your Render service, and Gunicorn parses its value as command-line arguments:
If you set the timeout in more than one place, command-line arguments override GUNICORN_CMD_ARGS, which overrides gunicorn.conf.py.
Uvicorn timeouts
The timeout that applies depends on which process manages your workers:
- Uvicorn workers under Gunicorn: Install the
uvicorn-workerpackage (pip install uvicorn-worker) and run Gunicorn with-k uvicorn_worker.UvicornWorker. Gunicorn's--timeoutstill applies to these workers. Per the Gunicorn settings documentation, for non-sync workers the timeout only means the worker process is still communicating. It isn't tied to how long a single request takes.UvicornWorkeris a non-sync worker. A worker timeout here means the whole worker stopped responding, so raising--timeoutalone may not fix it. If a request blocks the worker for that long, move the work off the request path (see below). - Uvicorn run directly: Gunicorn's worker timeout doesn't apply. Per the Uvicorn settings documentation, Uvicorn's timeout settings cover other phases of a connection.
--timeout-keep-alivecloses idle keep-alive connections after 5 seconds by default.--timeout-graceful-shutdownsets the maximum number of seconds to wait for graceful shutdown. Neither setting imposes a per-request deadline during normal operation. During shutdown, Uvicorn stops waiting after--timeout-graceful-shutdownseconds and starts terminating requests. The Uvicorn docs state no default for it.
When raising timeouts stops making sense
If your work routinely runs for minutes, move it off the request path.
- Background workers run continuously without receiving incoming traffic and usually poll a task queue. They keep your app responsive by offloading long-running tasks from the request path. A Render Key Value instance works well as a job queue, for example with Celery.
- Render Workflows orchestrates chains of long-running tasks that can each run for up to 24 hours.
See the background workers documentation for the queue pattern.