The usual reason for an n8n webhook not working is the URL. The /webhook-test/ address is only live for a single call, within two minutes of clicking Listen for test event. Real traffic from Meta, Stripe or a form has to go to the /webhook/ production URL, and the workflow has to be published (in n8n 2.x, Publish replaced the old Active toggle).
If the URL and the publish state are right, the cause is nearly always on a short list: the wrong HTTP method, a public URL that still says localhost:5678, a certificate the sender rejects, a reply that comes too late, or a proxy or firewall in the way. Below you'll find curl tests for each URL, what every n8n error response means, and the fixes in the order they tend to turn up. Messages and defaults were checked against the n8n docs and the source code of n8n 2.47, the current stable release, on 15 November 2026.
- Paste the Production URL (
/webhook/…) into the other app, never the Test URL (/webhook-test/…). - Publish the workflow, and publish again after changing the path or method. Production runs the published version, not your draft.
- Read the response. A 404 saying "is not registered" means nothing listens on that URL and method, and the hint tells you whether n8n treated it as a test or a production call.
- A new Webhook node listens for GET. Most senders POST.
- Behind a reverse proxy, set
N8N_WEBHOOK_URL(WEBHOOK_URLbefore n8n 2.30) to your public HTTPS address, plusN8N_PROXY_HOPS=1. - Answer fast: leave Respond on Immediately, or put a Respond to Webhook node early, so proxies and senders don't give up.
Why is my n8n webhook not working? Check the URL first
Every Webhook node has two URLs, and the node panel shows the Test URL first. They differ by one path segment and behave very differently:
| Test URL | Production URL | |
|---|---|---|
| Path | /webhook-test/<path> | /webhook/<path> |
| Registered when | You click Listen for test event or Execute workflow | You publish the workflow |
| Stays live | 120 seconds, or until the first call | Until you unpublish |
| Calls it takes | One | Every call |
| Where runs show up | On the canvas | Only in the Executions tab |
The test URL is a debugging tool. Click Listen for test event and n8n registers it for 120 seconds, according to the Webhook node docs. The first request to arrive runs the workflow on your canvas, and n8n drops the registration straight away. Its own error hint says so: "In test mode, the webhook only works for one call after you click this button." Anything that calls later gets a 404.
The production URL is registered when you publish and stays registered until you unpublish. Its runs never appear on the canvas, which fools a lot of people: the webhook works fine, but they're watching an editor where nothing moves. Open the workflow's Executions tab instead.
n8n 2.x: Publish replaced Active
Since n8n 2.0 there's no Activate toggle. You click Publish to make a workflow live and Unpublish to stop it, as the 2.0 breaking changes describe. Edits stay in a draft, and n8n's publishing guide says production executions use the published version, not your latest draft edits. So if you change the webhook path or method and don't publish again, the live webhook keeps the old values, and the new URL shown in the node answers with a 404.
One leftover from the old naming: the production 404 hint still says the workflow "must be active" and points to "the toggle in the top-right of the editor". On 2.x, read that as Publish.
A real case: the test URL in Meta's settings
One of our customers pasted the /webhook-test/ URL into their Meta app's webhook settings. It worked while the editor was listening, so the setup looked right, and it stopped as soon as nobody was. Meta was calling an address that only exists during a test. The fix took a couple of minutes: copy the Production URL from the node, publish the workflow, put the /webhook/ address into Meta and verify it again.
Test each URL with curl
Call the webhook yourself before you change any settings. curl shows the exact status code and body, which a sender's dashboard often hides. Swap in your own host and path (orders here):
# 1. Test URL: click "Listen for test event" first, then run this within 2 minutes
curl -i -X POST "https://n8n.example.com/webhook-test/orders" \
-H "Content-Type: application/json" \
-d '{"ping": "test"}'
# 2. Production URL: the workflow must be published
curl -i -X POST "https://n8n.example.com/webhook/orders" \
-H "Content-Type: application/json" \
-d '{"ping": "prod"}'
# 3. Same URL with GET, to see which method the node expects
curl -i "https://n8n.example.com/webhook/orders"
# 4. On the server itself, skipping DNS, TLS and the proxy
# (assumes port 5678 is published on localhost)
curl -i -X POST "http://127.0.0.1:5678/webhook/orders" -d "ping=local"
-i prints the status line and headers above the body. A working production call with the default Respond setting returns 200 and {"message":"Workflow was started"}, and the run appears under Executions. If test 4 works and test 2 doesn't, n8n is fine and the fault sits in front of it: DNS, the certificate, the proxy or a firewall.
What n8n's webhook errors mean (404 and the rest)
n8n answers webhook errors with a small JSON body: a code, a message and sometimes a hint. The texts below come from the n8n source (webhook-not-found.error.ts and the Webhook node itself), so you can match them word for word. A production call to an unregistered path looks like this:
{"code":404,"message":"The requested webhook \"POST orders\" is not registered.",
"hint":"The workflow must be active for a production URL to run successfully. You can activate
the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls,
production URL calls aren't shown on the canvas (only in the executions list)"}
| What you get back | What it means | What to do |
|---|---|---|
200 {"message":"Workflow was started"} | The production webhook took the call (Respond: Immediately) | Look in Executions, not on the canvas |
404 The requested webhook "orders" is not registered. Hint: "Click the 'Execute workflow' button on the canvas…" | Test URL with nobody listening, or its one call was already used | Click Listen again, or switch to /webhook/ |
404 The requested webhook "POST orders" is not registered. Hint: "The workflow must be active…" | Nothing published on that path and method | Publish; check the path spelling; republish after edits |
404 This webhook is not registered for POST requests. Did you mean to make a GET request? | The path exists, the method doesn't | Change HTTP Method, or allow several |
401 Authorization is required! / Authentication data is wrong! / No token provided | Basic auth missing or wrong, or no JWT sent | Send the right credentials |
403 Authorization data is wrong! | Header or bearer auth failed, or Ignore Bots caught the sender (a bad JWT gets a 403 with its own error text) | Check the header name and value |
403 IP is not allowed to access the webhook! | The IP(s) Allowlist rejected the caller | Behind a proxy, set N8N_PROXY_HOPS |
500 No authentication data defined on node! | An auth type is chosen but no credential is selected | Pick or create the credential |
500 {"message":"Error in workflow"} | The workflow failed before it answered | Open the failed execution |
| HTML 404, 502 or 504 page; a Cloudflare page | The request never got an answer from n8n | Proxy, firewall or timeout (below) |
413 Request Entity Too Large (HTML page) | Body over the proxy's size limit; n8n has its own limit too | Raise client_max_body_size, then check N8N_PAYLOAD_SIZE_MAX |
The format of the reply tells you where the request died. n8n's own 404 is JSON with a hint. A bare HTML page saying "404 Not Found" or "502 Bad Gateway" came from your proxy, and a Cloudflare-branded page came from Cloudflare. In both cases the Webhook node never saw the call.
Method mismatch: the Webhook node defaults to GET
A new Webhook node listens for GET. Stripe, WhatsApp messages, most form tools and nearly every app that sends events use POST. The result is a 404 that looks alarming but names the fix:
{"code":404,"message":"This webhook is not registered for POST requests. Did you mean to make a GET request?"}
Set HTTP Method to POST and publish again. If one URL has to take both, like Meta's GET verification followed by POSTed events, open the node's Settings, turn on Allow Multiple HTTP Methods and pick the methods. The node then gets one output per method, so each can go its own way.
Why does my n8n webhook URL say localhost:5678?
n8n doesn't know its public address unless you tell it. With no webhook URL configured, it builds one from N8N_PROTOCOL, N8N_HOST and N8N_PORT, which default to http, localhost and 5678. A fresh Docker install behind nginx, Caddy or Traefik therefore prints http://localhost:5678/webhook/… in the node, and that's the URL people copy into Stripe or Meta. The sender then tries its own localhost, or rejects the plain-HTTP address outright.
The fix, from n8n's reverse proxy guide, is to set the public URL explicitly and tell n8n how many proxies sit in front of it. In Docker Compose:
services:
n8n:
image: n8nio/n8n
environment:
- N8N_HOST=n8n.example.com
- N8N_PROTOCOL=https
- N8N_WEBHOOK_URL=https://n8n.example.com/ # n8n 2.30+; older: WEBHOOK_URL
- N8N_PROXY_HOPS=1
N8N_WEBHOOK_URL arrived in n8n 2.30. The older WEBHOOK_URL still works as an alias but logs a deprecation warning at startup, and on versions before 2.30 it's the only one n8n reads. Setting N8N_HOST and N8N_PROTOCOL alone doesn't fix it: n8n appends N8N_PORT unless that's 443 with https or 80 with http, and the same variable is the port n8n listens on. N8N_PROXY_HOPS=1 makes n8n trust the proxy's X-Forwarded-* headers, which the IP allowlist needs in order to see the real caller.
The last proxy in the chain has to send those headers. In nginx:
location / {
proxy_pass http://127.0.0.1:5678;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
}
Recreate the container with docker compose up -d, reopen the Webhook node and check that the Production URL now starts with your https:// domain. If it doesn't, confirm the variables reached the container: docker compose exec n8n printenv | grep -E 'WEBHOOK_URL|PROXY_HOPS'.
Running n8n on your laptop is the same problem from the other side, since nothing on the internet can reach localhost. Put a tunnel such as cloudflared or ngrok in front and set N8N_WEBHOOK_URL to the tunnel's HTTPS address with N8N_PROXY_HOPS=1. n8n's own development tooling sets up its cloudflared tunnel the same way.
On HostAiHub n8n instances this part is done for you: the public webhook URL points at your SSL subdomain, or at your custom domain if you've attached one, so the node shows the right https:// address from the first run.
HTTPS: what Meta and Stripe expect
Most senders refuse plain HTTP or a bad certificate, and they rarely explain why.
- Meta requires "a valid TLS or SSL certificate correctly configured and installed" and says self-signed certificates are not supported (Meta webhooks docs).
- Stripe requires registered endpoints to be publicly accessible HTTPS URLs, supports only TLS 1.2 and 1.3, and treats any redirect as a failed delivery (Stripe webhooks docs). An
http://URL that your proxy bounces tohttps://fails, and so does one that redirects towww.
Check the certificate the way a sender sees it, from a machine outside your network:
curl -v https://n8n.example.com/healthz 2>&1 | grep -E "subject:|issuer:|expire date:|HTTP/"
You want your exact hostname in the subject, a public issuer such as Let's Encrypt, an expiry date in the future and a 200 from /healthz, n8n's health endpoint, which answers {"status":"ok"}. A self-signed or expired certificate, or a hostname mismatch, has to be fixed at the proxy.
Meta webhook verification: answering hub.challenge
When you save a callback URL, Meta sends a GET with three query parameters: hub.mode=subscribe, hub.verify_token (the string you typed in the app dashboard) and hub.challenge (an integer). Your endpoint has to check the token and reply with the challenge value and nothing else. Events then arrive as POSTs to the same URL. A JSON reply such as {"challenge": 1158201444} fails verification, and so does n8n's default {"message":"Workflow was started"}.
- In the Webhook node, set a path such as
meta. Under Settings, turn on Allow Multiple HTTP Methods and choose GET and POST. - Set Respond to Using 'Respond to Webhook' Node.
- On the GET output, add an If node:
{{ $json.query['hub.mode'] }}equalssubscribeand{{ $json.query['hub.verify_token'] }}equals your token. - On the true branch, add Respond to Webhook with Respond With: Text, body
{{ $json.query['hub.challenge'] }}and code 200. Text sendstext/htmlby default, so adding aContent-Type: text/plainheader doesn't hurt. On the false branch, respond with 403. - On the POST output, put a Respond to Webhook node (No Data, 200) first and your message handling after it. Without it, Meta waits until the whole workflow ends.
- Publish, paste the Production URL into Meta and verify.
Run Meta's check yourself first. The body must be exactly the number you sent:
curl -i "https://n8n.example.com/webhook/meta?hub.mode=subscribe&hub.verify_token=my-verify-token&hub.challenge=1158201444"
Using n8n's WhatsApp Trigger node instead of a plain Webhook? Then n8n registers the callback with Meta when you publish. The WhatsApp Trigger docs warn that WhatsApp allows one webhook per app, so testing that workflow overwrites the production URL and back again. Your app also has to be subscribed to the WhatsApp Business Account, or messages never arrive and no execution fails.
Timeouts: pick the right Respond mode
The Webhook node's Respond setting decides when the caller gets an answer, and that decides whether long workflows time out:
- Immediately (the default) returns
200 {"message":"Workflow was started"}as soon as the request arrives. The workflow carries on afterwards. - When Last Node Finishes holds the connection until the workflow ends and returns the last node's output. If a node fails first, the caller gets
500 {"message":"Error in workflow"}. - Using 'Respond to Webhook' Node answers when that node runs. If the workflow ends without reaching it, n8n sends a standard 200; if it fails before, a 500 (Respond to Webhook docs).
- Streaming sends data back as it's produced, for nodes that support it, such as the AI Agent.
Every hop in front of n8n has its own clock. nginx's proxy_read_timeout defaults to 60 seconds, after which the caller gets a 504. Cloudflare's proxy waits 125 seconds by default before returning a 524, and n8n's docs give 100 seconds for n8n Cloud. Senders are stricter still. Stripe says to return a 2xx "before any complex logic that could cause a timeout" and retries failed deliveries for up to three days in live mode, so a slow workflow can end up running twice.
For event senders, answer immediately and do the work afterwards. When the caller needs a computed result, such as a chat widget waiting for an AI reply, keep the work under your proxy's limit or split it in two: n8n's docs suggest one webhook that starts the job and answers at once, and a second one the caller polls for the result. For agent workflows triggered this way, see our n8n AI agent tutorial.
Auth, duplicate paths, payload size and firewalls
Authentication on the Webhook node
The node can require Basic auth, Header auth, JWT auth or n8n User Auth (OAuth2). A caller without matching credentials gets one of the 401 or 403 responses in the table above, and no execution appears. Stripe and Meta can't send your custom header or password at all. They sign each request instead (Stripe-Signature, X-Hub-Signature-256), so put Authentication on None for them, turn on the Raw Body option and check the signature inside the workflow. Separately, picking an auth type without selecting a credential makes every call fail with 500 No authentication data defined on node!.
The IP(s) Allowlist option answers 403 IP is not allowed to access the webhook! to everyone else. Behind a proxy, n8n sees the proxy's address unless N8N_PROXY_HOPS is set, so allowed senders get blocked too. And with Ignore Bots on, a sender whose User-Agent looks like a crawler gets a 403. For the wider picture, see our security checklist for self-hosted agents.
Duplicate paths
n8n allows one webhook per path and method across the whole instance. Publishing a second workflow that also uses POST /webhook/stripe fails with The URL path that the "Webhook" node uses is already taken. Please change it to something else. It usually happens after duplicating a workflow that has a custom path. Unpublish the old one or change the path; the random default path exists to prevent exactly this.
Payload size
n8n rejects request bodies over N8N_PAYLOAD_SIZE_MAX, which defaults to 16 MiB, and files in multipart form data have their own limit, N8N_FORMDATA_FILE_SIZE_MAX, 200 MiB by default (endpoint variables). Raise the first and restart n8n if a sender posts large base64 files. Check the proxy as well: nginx's client_max_body_size defaults to 1 MB and answers 413 Request Entity Too Large before n8n sees a byte.
Firewalls and Cloudflare
If curl from outside can't connect at all, look at the server firewall and your cloud provider's security group. Port 443 has to be open to the internet, not only to your own IP. Test from a phone on mobile data or from another server, because a call from the n8n host itself proves nothing about the outside.
Cloudflare adds its own traps. Bot Fight Mode challenges automated traffic, and Cloudflare says you can't bypass it with WAF custom rules or Page Rules, so a sender may get a challenge page instead of n8n. Turn it off for the zone, or use Super Bot Fight Mode, which supports skip rules. A Cloudflare Access application covering the whole hostname sends senders to a login page, so leave /webhook/ out of it. The 125-second proxy timeout from the previous section applies too.
Or let someone else run the proxy
Past the first two causes, most of these fixes are plumbing around n8n: certificates, the public URL, proxy headers and timeouts. If you'd rather not own that, HostAiHub's n8n hosting gives you a private, isolated n8n instance on a free SSL subdomain (you.hostaihub.com), deployed in about two minutes, with n8n's public webhook URL already set to it. Attach a custom domain on request and we point the webhook URL at that domain and issue a Let's Encrypt certificate. You also get daily backups, automatic upstream updates and no workflow or execution limits.
Hosting doesn't change the first two causes: you still paste the Production URL and publish. Plans are $7 a month, $70 a year, $150 for two years or $320 one-time; see pricing. If you already run a reverse proxy you're happy with, two environment variables fix the URL for free, and n8n's own Cloud handles it as well. Our n8n Cloud vs self-hosted cost comparison runs the numbers.
Frequently asked questions
What is the difference between the n8n webhook test URL and production URL?
The test URL (/webhook-test/…) is registered only after you click Listen for test event or Execute workflow, lasts up to 120 seconds, takes a single call and shows the data on the canvas. The production URL (/webhook/…) is registered when you publish the workflow and takes every call until you unpublish. Production runs appear only in the Executions tab.
How long does the n8n test webhook listen?
For 120 seconds after you click Listen for test event, and only for one call. As soon as a request arrives, n8n runs the workflow and unregisters the test URL, so the next call gets a 404 until you click Listen again.
Why does my n8n webhook return 404 "is not registered"?
Nothing is listening on that URL and HTTP method. On a /webhook-test/ URL it means no test is waiting; on a /webhook/ URL it means the workflow isn't published, the path is different, or you changed the path without publishing again. If the message asks whether you meant a different request type, the path exists and only the HTTP method is wrong.
Why does my n8n webhook URL show localhost:5678?
n8n builds the URL from N8N_PROTOCOL, N8N_HOST and N8N_PORT, which default to http, localhost and 5678, unless you set a public webhook URL. Behind a reverse proxy, set N8N_WEBHOOK_URL (WEBHOOK_URL on versions before 2.30) to your public HTTPS address, set N8N_PROXY_HOPS=1, and restart n8n.
Is there still an Active toggle in n8n 2.x?
No. Since n8n 2.0, Publish and Unpublish replace the Activate toggle, and production webhooks run the published version of the workflow. Edits stay in a draft until you publish again, so a changed path or method isn't live before that.
How do I pass Meta's webhook verification in n8n?
Meta sends a GET with hub.mode, hub.verify_token and hub.challenge, and expects the challenge value back as plain text. Let the Webhook node accept GET and POST, check the token in an If node, and answer with a Respond to Webhook node set to Text with the body {{ $json.query['hub.challenge'] }}. Use the production URL of a published workflow with a valid HTTPS certificate.
What is the maximum payload size for an n8n webhook?
By default n8n accepts request bodies up to 16 MiB, set by N8N_PAYLOAD_SIZE_MAX, and multipart file uploads up to 200 MiB, set by N8N_FORMDATA_FILE_SIZE_MAX. Your reverse proxy may be stricter: nginx allows 1 MB unless you raise client_max_body_size.