Back to HTTP 502 Bad Gateway
    HTTP 502
    Netlify

    HTTP 502 Bad Gateway in Netlify

    Netlify — Jamstack hosting with edge functions.

    What triggers it in Netlify

    Function cold-start exceeded 10s or returned an invalid Lambda response.

    Standards reference

    How to fix it on Netlify

    Return a well-formed `{ statusCode, body }` object and reduce cold-start weight (fewer top-level imports).

    Where you'll see it

    Netlify's function logs, deploy summary, or the browser DevTools network tab.

    Monitor 502 responses continuously

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

    Catch 502 errors on Netlify in under 60s

    Free tier — 5 monitors, no credit card.

    Same error on other platforms

    502 Bad Gateway in Netlify — FAQs

    Function cold-start exceeded 10s or returned an invalid Lambda response.

    Last verified: by the Lemwatch research team.