Back to HTTP 504 Gateway Timeout
    HTTP 504
    Vercel

    HTTP 504 Gateway Timeout in Vercel

    Vercel — serverless deployment platform for Next.js and edge apps.

    What triggers it in Vercel

    A serverless function exceeded the max duration (10s on Hobby, 60s on Pro, 900s on Enterprise) or the edge middleware timed out (25s hard cap).

    Standards reference

    Log example

    [GET] /api/report status=504
    FUNCTION_INVOCATION_TIMEOUT

    How to fix it on Vercel

    Move long tasks to a queue (Vercel Queues, Inngest, QStash), stream the response, or upgrade the function's `maxDuration` in `vercel.json`.

    Where you'll see it

    Vercel's Edge Network, serverless function logs, or the deployment dashboard.

    Monitor 504 responses continuously

    Lemwatch checks your Vercel endpoints as often as every 5 minutes and alerts the moment a 504 pattern appears — with the full response headers and body captured, so you can debug without waiting for the next customer report.

    Catch 504 errors on Vercel in under 60s

    Free tier — 5 monitors, no credit card.

    Same error on other platforms

      504 Gateway Timeout in Vercel — FAQs

      A serverless function exceeded the max duration (10s on Hobby, 60s on Pro, 900s on Enterprise) or the edge middleware timed out (25s hard cap).

      Last verified: by the Lemwatch research team.