Can a Netlify function timeout be fixed by retrying?
Retries can increase load and still exceed the same limit. Identify slow work and move durable long tasks out of the synchronous request.
Netlify · HTTP 504
Trace a Netlify function timeout to long synchronous work, slow dependencies, or platform execution limits. Use request IDs and function logs to locate the wait.
Origin / Application
Paste a captured HTTP response or enter a status and headers. Only the status and response headers are sent; common credential headers are filtered first.
Diagnostic report
Error code / name
Fault domain
Origin / ApplicationThe function did not return before its execution limit. Long database queries, serial external requests, or doing background work inside a request can hold the invocation open.
The function did not return before its execution limit. Long database queries, serial external requests, or doing background work inside a request can hold the invocation open.
Client -> Netlify Edge -> function starts -> dependency or job exceeds limit -> X 504curl -sS -I -w 'starttransfer=%{time_starttransfer} total=%{time_total}\n' --max-time 90 https://example.com/.netlify/functions/healthexport default async () => {
const jobId = await enqueueReport();
return new Response(JSON.stringify({ jobId }), {
status: 202,
headers: { "content-type": "application/json" },
});
}SteadyNode's regional HTTP checks detect function latency and 504 responses, while response-header capture helps correlate customer impact with Netlify request logs.
No credit card required.
Start for freeRetries can increase load and still exceed the same limit. Identify slow work and move durable long tasks out of the synchronous request.
Use the x-nf-request-id from the response to locate the matching Netlify function log entry.