n8n webhook 404 not registered fix: find the right URL
Fix an n8n webhook 404 not registered error by checking the test or production URL, method, workflow status, and deployment before changing infrastructure.
An n8n “webhook not registered” 404 means n8n received the request, but no registered webhook matched its URL and HTTP method. Compare the Webhook node’s test or production URL, method, and path. Then confirm that the workflow is listening or published before changing proxy or container settings.
What the 404 means
A registration 404 usually appears before the workflow runs. n8n first selects the URL family: /webhook-test/ or /webhook/. It then matches the request’s HTTP method and path.
This differs from an application-level 404. If the Webhook node creates an execution and a later node or downstream API returns “not found,” the route reached your workflow. Debug that later node instead.
Start with a read-only comparison. Record:
- The complete public URL, host, and path
- The HTTP method and response body
- Whether the URL contains /webhook/ or /webhook-test/
- Any redirect shown by the client
- Which n8n instance answered the request
Do not delete or recreate the workflow while these values are unknown.
Before you change anything: test or production?
A test webhook exists only while the editor is waiting for a test event. A production webhook exists for the published workflow; older n8n interfaces may call that state Active. These URL families are not interchangeable.
| Request target | Registration condition | Correct action |
|---|---|---|
| /webhook-test/... | A test listener is running | Click Listen for test event, then send the request immediately |
| /webhook/... | The workflow is published or active | Publish or activate the workflow, then call this URL |
If an external service receives the test URL and sends the request later, the listener may have stopped waiting. For a manual request, start the listener immediately before sending it. Otherwise, give the service the production URL.
Open the workflow and check the current state label in your installed n8n version. Save it, then publish or activate it as appropriate. Production calls generally appear in Executions, not as a live test on the editor canvas.
Also check the hostname. A local container, staging domain, n8n Cloud workspace, or second self-hosted instance can have different registrations. If the URL points to the wrong instance, changing the workflow on the intended instance will not fix the request.
Match the method, path, query, and slash
The request must match the Webhook node’s method, path, URL family, slash, and required query details. Compare those values before changing the node. A browser address bar sends GET, so it cannot test a POST webhook.
- Read the node’s HTTP Method and use that method.
- Copy the node’s Path. Compare spelling, capitalization where relevant, hyphens, underscores, and path parameters.
- Confirm that /webhook/ or /webhook-test/ matches the URL family selected earlier.
- Compare the trailing slash exactly. Inspect response headers because a proxy redirect can alter the route or request method.
- Confirm that required query details remain after the path. Check that a proxy did not remove or rewrite them.
Use fictional data. Leave out authorization headers, cookies, tokens, and webhook secrets. This checks the route without exposing credentials:
curl -i -X POST 'https://example.invalid/webhook/order-created?check=1' -H 'Content-Type: application/json' --data '{"probe":"n8n-webhook-check"}'Replace the example host and path with the URL copied from the Webhook node. Useful evidence includes the registration 404 no longer appearing and a new n8n execution. The exact success status and response body depend on the node’s response settings and installed n8n version.
If this controlled request still fails, test the internal n8n address separately from the machine or container network where n8n runs. Keep the original public request details. Then compare the public and internal routes without changing both sides at once.
Check the proxy, tunnel, container, and instance
When the node and request match, inspect the deployment path. A reverse proxy can serve the n8n interface correctly while sending webhook requests to the wrong route or instance.
For Nginx, Traefik, Cloudflare Tunnel, or another proxy, check that /webhook/ and /webhook-test/ reach n8n without path stripping or rewriting. Check the forwarded host and protocol values too. For Docker, verify the published port and container network. Identify which service receives the public request. For a tunnel, confirm that it targets the intended n8n instance.
Environment-variable names and deployment requirements can differ between n8n versions and setups. Before changing WEBHOOK_URL, N8N_WEBHOOK_URL, or related settings, compare the current values with the official n8n documentation for the installed version. Record the existing configuration first. Restart only when the documented change requires it and the interruption is acceptable.
With multiple n8n processes behind a proxy or load balancer, compare the proxy access log and n8n process log. Also compare the request host, route, and instance identifier where available. A request can reach an instance with different workflow state, which can look like a URL problem.
Refresh registration without rebuilding the workflow
Refresh the workflow state instead of rebuilding it. A changed webhook path or method makes old callers stale. Duplicate paths can also make ownership unclear, so search the workflows for the same path and method first.
- Save the current Webhook node path, method, workflow state, public URL, proxy route, and deployment configuration. This lets you roll back.
- If the node path or method changed, update the caller to the current value or restore the previous node value. Do not change both without recording the original configuration.
- Re-save the workflow, then publish or activate it with the controls shown by your installed n8n version. For a test request, start the test listener immediately before sending it.
- If n8n restarted, wait for startup to finish before testing. Registrations may not be ready during startup.
- Send one controlled request and check for a new execution.
If you used a CLI publishing command, follow the command and restart instruction shown by the installed version’s CLI help or current n8n documentation. Do not copy a version-specific command from an older article. A restart can interrupt other workflows, so record the current state and use an appropriate maintenance window.
Do not delete webhook nodes, clear the database, or rebuild the workflow for a registration mismatch. If the route still fails after the state refresh, return to the public-versus-internal route comparison. Avoid making several infrastructure changes at once.
Verify the fix and know when to escalate
Confirm the fix with one controlled request and a matching n8n execution. Use fictional or non-sensitive data through curl, Postman, or an equivalent client. Keep the method and URL copied from the Webhook node.
- Record the status, response body, and any redirect. Confirm that the original registration 404 is gone and that a redirect did not change the request method.
- Open n8n’s Executions view and find the matching run. Production calls may appear there rather than on the editor canvas.
- Confirm that the Webhook node received the expected method, path, query values, and body.
- Compare only the matching timestamp, host, route, and instance in proxy and n8n logs. Redact authorization headers, cookies, webhook secrets, tokens, and personal data before sharing logs.
If an execution exists but a later node returns 404, webhook registration works. The later response is an application-level error. Stop changing webhook or proxy settings and troubleshoot that node separately.
Escalate only after the copied URL and method match, the workflow is published or active, and the internal route works. Also require a reproducible public request that still reaches the wrong instance or returns the registration 404. Include the installed n8n version, deployment type, proxy or tunnel, redacted request details, relevant logs, and execution evidence.
Conclusion
First identify whether the request uses the test or production URL. Then match its method and path, and refresh registration by listening, publishing, or activating the workflow. Investigate proxy, container, or multi-instance routing only afterward. The controlled request confirms the fix when it creates the expected execution.
Frequently Asked Questions
Why does the test webhook work while the production URL returns 404?
The two URLs use different paths and registration conditions. /webhook-test/ needs an active test listener, while /webhook/ needs a published or active workflow. Compare the copied URLs. For a manual test, start the listener immediately before the request; for production, publish or activate the workflow before calling the URL.
Can a trailing slash or redirect cause this 404?
Yes. A trailing slash can change the route that reaches n8n, and a redirect can also change the request method. Compare the URL character by character. Inspect response headers and configure the proxy to forward the webhook path without unexpected rewriting.
How can I test the webhook without exposing credentials?
Use fictional data and omit authorization headers, cookies, tokens, and webhook secrets. Run the request with curl -i or an equivalent client. Redact logs and responses before sharing them. Confirm the matching execution in n8n instead of relying only on a successful proxy response.
Sources
- n8n Webhook Not Registered (404): Six Causes and Fixes (workflowrunbooks.com)
- n8n "The requested webhook is not registered": Fix | PURIST (purist.online)
- Fix n8n Webhook Not Registered (404) and Localhost URLs (rakibulinux.com)
- n8n Webhook 404: Fix "The requested webhook is not registered" (operantsolo.com)