What does FUNCTION_INVOCATION_TIMEOUT mean?
The function exceeded its configured execution duration before returning an HTTP response.
Vercel · HTTP 504
Trace Vercel FUNCTION_INVOCATION_TIMEOUT to a function that exceeds its execution window. Inspect invocation duration, cold starts, and downstream waits.
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 finish before its configured maximum duration. Cold starts, synchronous report generation, and slow database or third-party calls can consume the available execution time.
The function did not finish before its configured maximum duration. Cold starts, synchronous report generation, and slow database or third-party calls can consume the available execution time.
Client -> Vercel Edge -> function starts -> downstream work exceeds duration -> X responsecurl -sS -I -w 'starttransfer=%{time_starttransfer} total=%{time_total}\n' --max-time 90 https://example.com/api/healthexport const maxDuration = 60;
export async function POST(request: Request) {
const jobId = await enqueueReport(await request.json());
return Response.json({ jobId }, { status: 202 });
}SteadyNode's HTTP checks track response latency and preserve gateway signatures, helping teams spot function-duration regressions before customer workflows time out.
No credit card required.
Start for freeThe function exceeded its configured execution duration before returning an HTTP response.
No. The project plan and runtime cap duration, and extending it can hide slow work. Measure the function and move durable long tasks out of the request path.