// guides · n8n error index

n8n 413 Request Entity Too Large? Payload limits tested

Fix n8n payload too large errors: why big JSON gets a 500 not a 413, N8N_PAYLOAD_SIZE_MAX, multipart 413, gzip and nginx limits. Tested on n8n 2.43.7.

Updated 2026-10-30 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. How we tested, and what is real

    On 30 October 2026 we ran a throwaway n8n 2.43.7 in Docker (the official n8nio/n8n:2.43.7 image, SQLite) with three Webhook workflows: one taking a JSON body, one with the Raw Body option on (application/octet-stream), and one taking a multipart file upload into binary property data. We sent bodies of 1 MB, 5 MB and 20 MB, plus a gzipped 20 MB JSON, under three configurations, about 40 requests in all. Every status code and message below is copied from those runs.

  2. Quick answer: what you see and what it means

    What the caller getsCauseFix
    HTTP 500 There was a problem executing the workflow (JSON body)Body larger than N8N_PAYLOAD_SIZE_MAX (16 MB by default). The log says PayloadTooLargeError: request entity too large.Raise N8N_PAYLOAD_SIZE_MAX, or send the file as multipart.
    HTTP 500 Workflow Webhook Error: Workflow could not be started! (Raw Body webhook)Same limit, raw body.Same fix.
    HTTP 413 The submitted form data exceeds the allowed size.Multipart upload larger than N8N_FORMDATA_FILE_SIZE_MAX (200 MB by default).Raise N8N_FORMDATA_FILE_SIZE_MAX.
    HTTP 413 as an HTML page (413 Request Entity Too Large with nginx or Cloudflare branding)A reverse proxy in front of n8n, not n8n.Raise the proxy limit, for example nginx client_max_body_size.

  3. n8n does not answer 413 for a big JSON body

    With default settings a 1 MB and a 5 MB JSON body worked. A 20 MB JSON body got HTTP 500 with {"code":0,"message":"There was a problem executing the workflow"}, not 413. Nothing in the response says the body was too big. Only the server log does: Error in handling webhook request POST /webhook/big: There was a problem executing the workflow followed by PayloadTooLargeError: request entity too large from body-parser. So if a large webhook call fails with this vague 500, check docker logs n8n 2>&1 | grep -i PayloadTooLarge before you debug the workflow itself. The execution never starts, so the Executions list stays empty.

  4. Raw Body webhooks fail with "Workflow could not be started!"

    The same 20 MB sent as application/octet-stream to a Webhook with Raw Body turned on got HTTP 500 Workflow Webhook Error: Workflow could not be started!. Same cause, same PayloadTooLargeError in the log, different text for the caller.

  5. Fix: raise N8N_PAYLOAD_SIZE_MAX

    The value is in megabytes and the default is 16. With N8N_PAYLOAD_SIZE_MAX=32 every one of our tests returned 200, including the 20 MB JSON and the gzipped one. In Docker, add -e N8N_PAYLOAD_SIZE_MAX=32 (or the line under environment: in docker compose) and recreate the container: a plain restart of a container started without it keeps the old value. Raise it only as far as you need, since n8n holds the whole body in memory; very large bodies can crash the instance (see n8n out of memory errors).

  6. The limit is exact, and gzip does not help

    With N8N_PAYLOAD_SIZE_MAX=1, a raw body of exactly 1,048,576 bytes worked and a JSON body of 1,048,587 bytes (11 bytes more) failed, so "1" means 1 MiB. Compressing does not get around it: a 20 MB JSON sent gzipped with Content-Encoding: gzip was tiny on the wire but still failed at the default limit, because n8n checks the size after decompressing.

  7. Multipart uploads have their own limit, and the only real 413

    A 20 MB file sent as multipart/form-data worked with default settings: multipart is not covered by N8N_PAYLOAD_SIZE_MAX but by N8N_FORMDATA_FILE_SIZE_MAX, 200 MB by default. With N8N_FORMDATA_FILE_SIZE_MAX=1, 5 MB and 20 MB uploads got HTTP 413 {"code":413,"message":"The submitted form data exceeds the allowed size."}, and a file of exactly 1 MiB still worked. This is the only 413 that n8n itself sent in our tests. It applies to Webhook file uploads and the Form Trigger. So the practical fix for big files is often to send them as multipart instead of base64 in JSON. More on that: n8n webhook file upload and binary data.

  8. A 413 HTML page comes from your proxy

    If the caller sees an HTML page titled 413 Request Entity Too Large, the request never reached n8n. nginx allows 1 MB by default; add client_max_body_size 50m; to the server block that proxies n8n and reload nginx. Other proxies and tunnels have their own caps (Cloudflare documents 100 MB on its free plan). We did not test proxies live for this guide, so check your proxy docs. nginx setup for n8n: n8n Connection lost behind a reverse proxy.

All test results

Real requests to n8n 2.43.7 in Docker. PAYLOAD and FORMDATA are N8N_PAYLOAD_SIZE_MAX and N8N_FORMDATA_FILE_SIZE_MAX in MB.

TestResult
JSON 1 MB, 5 MB (defaults)200
JSON 20 MB (defaults)500 There was a problem executing the workflow; log PayloadTooLargeError
Raw Body octet-stream 20 MB (defaults)500 Workflow could not be started!
Multipart 20 MB (defaults)200 (200 MB form-data limit applies)
Gzipped 20 MB JSON (defaults)500, limit applies after decompression
PAYLOAD 1: raw exactly 1,048,576 bytes200
PAYLOAD 1: JSON 1,048,587 bytes500
FORMDATA 1: multipart 5 MB, 20 MB413 The submitted form data exceeds the allowed size.
FORMDATA 1: multipart exactly 1 MiB200
PAYLOAD 32: every case above200

Checklist

Good to know

What we did not test

n8n Cloud (its limits are set by n8n, not by you), queue mode with webhook processors, the public REST API (it uses the same N8N_PAYLOAD_SIZE_MAX in the source, but we did not send it big bodies), and real proxies in front of n8n.

FAQ

How do I fix 413 Request Entity Too Large in n8n?

If it is an HTML page, raise your reverse proxy limit (nginx client_max_body_size). If it is JSON with "The submitted form data exceeds the allowed size.", raise N8N_FORMDATA_FILE_SIZE_MAX. For big JSON or raw bodies n8n answers 500, not 413; raise N8N_PAYLOAD_SIZE_MAX.

What is the default N8N_PAYLOAD_SIZE_MAX?

16, in megabytes (MiB). In our tests a 20 MB JSON body failed with the default and worked with N8N_PAYLOAD_SIZE_MAX=32.

Why does my n8n webhook return "There was a problem executing the workflow" for large requests?

In our tests that was the response to a JSON body larger than N8N_PAYLOAD_SIZE_MAX. The n8n log shows PayloadTooLargeError: request entity too large. The workflow never starts.

Does gzip compression get around the n8n payload limit?

No. A gzipped 20 MB JSON body still failed at the 16 MB default, because n8n measures the body after decompressing it.

What is N8N_FORMDATA_FILE_SIZE_MAX?

The size limit in MB for multipart/form-data uploads to Webhook and Form Trigger nodes, 200 by default. Over it, n8n answers HTTP 413 "The submitted form data exceeds the allowed size."

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.