Fix an n8n webhook that is not working by checking URL registration, HTTP methods, reverse proxy settings, timeouts, and queue workers.

CEO of Sharcon LLC
15+ years in marketing and development. Leading a team of 30+ professionals at Sharcon.
If your n8n webhook is not working, first check whether you are using the correct Test or Production URL, whether the workflow is published or active, and whether the incoming HTTP method matches the Webhook node settings. If those settings are correct, investigate your reverse proxy, webhook registration, execution errors, and response configuration.
This guide explains how to diagnose n8n webhook errors, including 404 responses, timeouts, missing executions, incorrect webhook URLs, and queue mode configuration problems. It covers both n8n Cloud and self-hosted installations, with copy-ready commands and configuration examples.
Before changing your workflow or restarting your server, identify what actually happens when you send a request. The HTTP response and the n8n execution history usually tell you which part of the system is failing.
| Symptom | Common cause | First thing to check |
|---|---|---|
| 404 Not Found | Webhook not registered, incorrect URL or HTTP method | Workflow publication status and Webhook node settings |
| 401 Unauthorized | Missing or incorrect authentication | Webhook authentication settings and request headers |
| 403 Forbidden | Access restrictions, firewall or proxy rules | IP restrictions and proxy configuration |
| 405 Method Not Allowed | HTTP method rejected by an intermediary or endpoint | GET versus POST and proxy rules |
| 413 Payload Too Large | Request exceeds a configured size limit | Proxy and n8n payload limits |
| 500 Internal Server Error | Workflow or server-side failure | n8n execution history and logs |
| 502 Bad Gateway | Reverse proxy cannot reach n8n | Container status and upstream address |
| 504 Gateway Timeout | Upstream response takes too long | Webhook response mode and execution duration |
| 200 OK but nothing happens | Immediate acknowledgment, incorrect endpoint or downstream failure | Workflow execution history |
| Works locally but not externally | DNS, firewall, HTTPS or reverse proxy problem | Public endpoint accessibility |
| Test URL works but Production URL fails | Workflow not published or active | Production webhook registration |
A successful HTTP response does not necessarily mean the entire workflow completed successfully. Similarly, a 404 response does not automatically mean n8n is offline.
Instead of repeatedly triggering your CRM, payment platform, form builder or another external application, send a controlled request directly to n8n.
Replace the example hostname and path with the exact URL displayed in your Webhook node:
curl -i -sS --max-time 30 \
-X POST 'https://automation.example.com/webhook/order-created' \
-H 'Content-Type: application/json' \
-d '{"event":"diagnostic.test","id":"test-001"}'
The -i option displays response headers and the HTTP status code. The --max-time 30 option prevents curl from waiting indefinitely; it does not change any timeout settings in n8n.
Use a dedicated diagnostic workflow or a staging environment when testing. Sending fabricated orders or customer events to a live workflow could trigger real CRM updates, emails or other business actions.
After sending the request, open the workflow's Executions view in n8n. If an execution exists, the request reached the workflow and you can investigate individual nodes. If there is no execution, check webhook registration, networking and authentication, while also verifying whether execution-saving settings could explain the missing record.
The n8n Webhook node provides two different URLs. They are not interchangeable.
| Setting | Test URL | Production URL |
|---|---|---|
| Default endpoint prefix | /webhook-test/ | /webhook/ |
| Primary purpose | Development and debugging | Live integrations |
| Registration | While the editor is listening for a test event | While the workflow is published or active |
| Availability | Temporary | Persistent while registered and n8n is available |
| Incoming data | Appears in the editor during testing | Available through saved production executions |
| Suitable for external production systems | No | Yes |
For example, the same Webhook node might display these URLs:
Test:
https://automation.example.com/webhook-test/order-created
Production:
https://automation.example.com/webhook/order-created
Notice the difference between /webhook-test/ and /webhook/. Copying the Test URL into a permanent integration is a common configuration mistake.
The test webhook is temporary. Once the listener stops, expires or consumes the test event, you may need to start listening again before sending another request.
On n8n versions that distinguish between draft and published workflows, editing the draft does not automatically update the live workflow. Publish the updated version before testing production changes.
Production webhook executions also do not behave like manual test executions in the editor. Not seeing incoming data appear live on the workflow canvas is not evidence that the Production URL is broken.
A 404 generally means the requested webhook route could not be found. However, the response could originate from n8n itself, a reverse proxy, a CDN or another application serving the same domain.
If n8n returns a JSON error indicating that the requested webhook is not registered, focus on the workflow configuration before investigating infrastructure.
The Webhook node registers an endpoint for its configured HTTP method. A webhook configured for POST will not automatically accept GET requests on the same path.
Opening a webhook URL in your browser normally sends a GET request. That makes the browser address bar an unreliable way to test a POST webhook.
For a POST webhook, use:
curl -i -X POST \
'https://automation.example.com/webhook/order-created' \
-H 'Content-Type: application/json' \
-d '{"id":"test-001"}'
For a GET webhook, use:
curl -i \
'https://automation.example.com/webhook/order-created?id=test-001'
Depending on the component handling the request, a method mismatch may produce a 404 or 405 response.
Compare the URL configured in the sending application with the URL shown inside the Webhook node. Check for:
/webhook-test/ instead of /webhook/.Copy the complete generated URL rather than constructing it manually.
Two different workflows cannot independently own the same webhook path and HTTP method on the same n8n instance.
For example, two published workflows both attempting to register POST /webhook/order-created can create a registration conflict.
Inspect workflow publication or activation errors and change one of the paths if necessary. Meaningful, versioned paths can make registrations easier to manage:
POST /webhook/v1/orders/created
POST /webhook/v1/orders/updated
POST /webhook/v1/customers/created
Inspect the response headers and body:
curl -i -X POST \
'https://automation.example.com/webhook/order-created'
An n8n-style JSON response about an unregistered webhook suggests that the request reached n8n. An HTML error page from a web server, hosting provider or CDN suggests that the request may not be reaching the intended application.
This distinction matters when connecting n8n to custom applications or backend and API systems, where the same hostname may serve multiple applications through a reverse proxy.
If you self-host n8n using Docker, Nginx, Traefik or another reverse proxy, the URL generated by n8n may not match the public address used by external services.
A typical symptom is a Webhook node displaying an internal hostname, localhost, an HTTP URL instead of HTTPS, or the internal port 5678 in a publicly accessible URL.
For a self-hosted instance available at https://automation.example.com, the relevant Docker Compose configuration could look like this:
services:
n8n:
environment:
N8N_HOST: automation.example.com
N8N_PORT: 5678
N8N_PROTOCOL: https
WEBHOOK_URL: https://automation.example.com/
N8N_EDITOR_BASE_URL: https://automation.example.com/
N8N_PROXY_HOPS: 1
Merge these settings into your existing Compose file. This is a configuration fragment, not a complete n8n deployment.
WEBHOOK_URL explicitly defines the public base URL used to generate webhook addresses. N8N_PORT remains the internal application port, while the reverse proxy handles public HTTPS traffic.
Set N8N_PROXY_HOPS to match the number of trusted reverse proxy hops in your actual deployment. The value 1 in this example assumes a single reverse proxy; a CDN followed by another proxy may require a different configuration.
After updating environment variables, recreate the affected service so the new values are applied:
docker compose up -d --force-recreate n8n
Replace n8n with your actual Compose service name. A simple container restart does not apply changes made to the Compose environment configuration.
Check the resulting configuration:
docker compose exec n8n printenv WEBHOOK_URL
Then reopen the Webhook node and confirm that its generated URL uses the expected public hostname and protocol.
A conventional Nginx reverse proxy configuration for a single n8n instance includes the original hostname and forwarded request information:
location / {
proxy_pass http://n8n:5678;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
This fragment assumes Nginx can resolve the n8n hostname and shares an appropriate network with the n8n container. If Nginx runs directly on the host, use the appropriate reachable upstream address instead.
Preserve the complete webhook path when forwarding requests. A proxy rule that accidentally removes /webhook/ can cause every production webhook to return 404 even though the n8n editor works normally.
For the editor's live connection, retain the WebSocket forwarding settings appropriate to your existing deployment. The example above focuses on ordinary incoming webhook requests rather than a complete editor proxy configuration.
Run these commands from a machine outside the network hosting n8n:
nslookup automation.example.com
curl -v --connect-timeout 10 \
--max-time 30 \
'https://automation.example.com/healthz'
The health endpoint can help confirm that the public hostname, TLS connection and application routing are functioning, assuming your deployment exposes it. A successful health check does not prove that a particular webhook is registered or that its workflow can execute.
Do not use curl -k as a permanent solution to certificate errors. External webhook providers commonly require a valid, trusted TLS certificate.
A webhook timeout occurs when the caller or an intermediary stops waiting before receiving an HTTP response. The workflow itself may continue executing after the caller disconnects.
There are several independent timeout boundaries: the sending application, CDN, load balancer, reverse proxy, n8n execution settings and downstream APIs. The shortest applicable timeout determines how long the request can remain open.
The Webhook node provides different response modes for different integration requirements.
| Response mode | Behavior | Appropriate use |
|---|---|---|
| Immediately | Acknowledges the incoming request without waiting for downstream processing | Event notifications and asynchronous processing |
| When Last Node Finishes | Waits for the workflow to finish and returns its configured result | Short synchronous operations |
| Using Respond to Webhook Node | Sends a response when the workflow reaches the response node | Custom status codes, response bodies and controlled acknowledgment |
If your workflow performs several API requests, AI model calls or CRM updates before responding, the sender may time out even when every node is configured correctly.
For integrations that only require acknowledgment, set the Webhook node's Respond option to Immediately. This avoids tying the HTTP response to the duration of downstream processing.
However, immediate acknowledgment confirms receipt, not successful completion of every operation. If the workflow fails afterward, the original sender may not know about it.
For business-critical events, an immediate response alone may not provide sufficient reliability. A more robust pattern is:
Webhook
-> Validate authentication and payload
-> Persist event with a unique event ID
-> Respond to Webhook
-> Process event asynchronously
Configure the Webhook node to use the Respond to Webhook node. Return HTTP 200 or 202 after the required validation and durable storage steps, depending on the sender's documented response requirements.
Use a separate scheduled workflow or another durable processing mechanism to recover accepted events that have not completed. Store processing status and attempt counts rather than assuming that every acknowledged event was processed successfully.
This is particularly useful for CRM and third-party integrations that receive lead submissions, customer updates, payment notifications or other events that should not disappear after an execution failure.
Use curl to measure the connection and response timing:
curl -sS -o /dev/null \
--max-time 120 \
-w 'HTTP: %{http_code}\nConnect: %{time_connect}s\nFirst byte: %{time_starttransfer}s\nTotal: %{time_total}s\n' \
-X POST 'https://automation.example.com/webhook/order-created' \
-H 'Content-Type: application/json' \
-d '{"id":"timing-test-001"}'
A slow connection suggests a networking issue. A fast connection followed by a long wait for the first response byte suggests that an upstream component or the workflow is delaying the response.
Compare the result with the workflow execution duration in n8n. If the external request times out while the execution eventually succeeds, investigate the response mode and the intermediary timeout limits.
For a self-hosted endpoint that genuinely needs to return a long-running synchronous result, Nginx permits upstream timeout configuration:
proxy_connect_timeout 10s;
proxy_send_timeout 120s;
proxy_read_timeout 120s;
These example values are not universal recommendations or n8n defaults. In particular, proxy_read_timeout controls the permitted interval between successive upstream reads, rather than imposing a simple total workflow duration limit.
Increasing Nginx timeouts will not override a shorter timeout imposed by the sending application, CDN or another proxy. For long-running workflows, changing the response architecture is generally more effective than increasing every infrastructure timeout.
Queue mode separates workflow execution from the main n8n process. It introduces additional dependencies, including Redis, a shared database and worker processes.
A webhook can be reachable and correctly registered while its workflow fails to execute because the worker infrastructure is unavailable.
Without dedicated webhook processors, the typical request flow is:
External application
-> Reverse proxy
-> Main n8n process
-> Redis-backed execution queue
-> Worker
-> Shared database and external services
With dedicated webhook processors, incoming production webhook requests can be handled separately from the main editor process:
External application
-> Load balancer or reverse proxy
-> Webhook processor
-> Redis-backed execution queue
-> Worker
Dedicated webhook processors are not required simply because queue mode is enabled. They are a separate scaling option.
The following environment variables illustrate the relevant shared configuration for a PostgreSQL and Redis-backed deployment:
EXECUTIONS_MODE=queue
DB_TYPE=postgresdb
DB_POSTGRESDB_HOST=postgres
DB_POSTGRESDB_PORT=5432
DB_POSTGRESDB_DATABASE=n8n
DB_POSTGRESDB_USER=n8n
DB_POSTGRESDB_PASSWORD=REPLACE_WITH_SECRET
QUEUE_BULL_REDIS_HOST=redis
QUEUE_BULL_REDIS_PORT=6379
N8N_ENCRYPTION_KEY=REPLACE_WITH_EXISTING_SHARED_KEY
WEBHOOK_URL=https://automation.example.com/
Apply the appropriate shared configuration to the main process, workers and dedicated webhook processors. All processes must use compatible n8n versions, access the same database and queue infrastructure, and share the encryption key required to decrypt credentials.
For an existing installation, preserve its original encryption key. Replacing it with a newly generated value can make stored credentials unreadable.
These settings are illustrative and do not replace a complete deployment configuration. Redis authentication, TLS, database security and persistent storage should match your infrastructure requirements.
Assuming your Docker Compose services are named n8n, n8n-worker, redis and postgres, run:
docker compose ps
docker compose logs --tail=100 n8n n8n-worker
docker compose exec redis redis-cli ping
docker compose exec postgres pg_isready -U n8n -d n8n
An accessible Redis instance should return PONG, assuming the command has the required authentication. PostgreSQL should report that it is accepting connections.
These checks establish basic service availability. They do not prove that every n8n process has valid credentials, can reach the services over its own network or is successfully consuming queued jobs.
Look for workers restarting, Redis connection failures, database connection errors, credential decryption failures and executions that remain queued without progressing.
With default endpoint names, route production webhook traffic to the webhook processor pool and editor traffic to the main process. Test webhook requests must continue reaching the main process.
A simplified Nginx routing example is:
location /webhook/ {
proxy_pass http://n8n-webhook:5678;
}
location /webhook-waiting/ {
proxy_pass http://n8n-webhook:5678;
}
location /webhook-test/ {
proxy_pass http://n8n-main:5678;
}
location / {
proxy_pass http://n8n-main:5678;
}
This example assumes separate services named n8n-main and n8n-webhook, default endpoint prefixes and appropriate shared forwarding headers. Merge it into your existing reverse proxy configuration rather than using it as a complete Nginx server block.
The /webhook-waiting/ route is relevant for workflows using waiting webhook functionality. Adapt the routing if you have customized the endpoint names.
If you set N8N_DISABLE_PRODUCTION_MAIN_PROCESS=true, production webhook traffic must reach an appropriately configured dedicated webhook processor. Sending those requests to the main process can make live webhooks unavailable even though testing in the editor still works.
Also account for differences between manual and production execution. Manual executions can run on the main process unless configured to offload them to workers, so a successful manual test does not necessarily prove that the worker infrastructure is healthy.
A successful HTTP status code can conceal several different problems: an acknowledgment sent before processing, an execution failure, a wrong endpoint or a downstream system that rejects the submitted data.
Start by opening the production execution record. Inspect the Webhook node output and find the first node that fails or produces unexpected data.
A common error is referencing a JSON field at the wrong level. The Webhook node normally places the incoming request body under body and query parameters under query.
For this request:
{
"email": "test@example.com",
"firstName": "Test"
}
An expression reading the email directly from the Webhook node output would normally be:
{{ $json.body.email }}
Using {{ $json.email }} immediately after the Webhook node may return an undefined value because the email is nested inside body.
For JSON requests, make sure the sender includes Content-Type: application/json. If the workflow expects form data, binary data or an unmodified raw request body, configure and inspect that format explicitly.
Also verify authentication, field mappings, conditional branches and downstream API responses. A CRM request can fail or update the wrong record even though the original webhook returned HTTP 200.
External systems may retry a webhook when they do not receive an acceptable response. A timeout does not guarantee that the original execution stopped.
Without duplicate protection, two deliveries of the same event can create duplicate contacts, deals, notifications or other side effects.
Use the provider's stable event identifier as an idempotency key. For workflows where duplicates have business consequences, enforce uniqueness in durable storage rather than relying solely on an in-memory check or a non-atomic search followed by an insert.
When an existing workflow contains multiple integrations, credentials and conditional branches, it is difficult to distinguish an infrastructure problem from a business logic problem. Build a minimal diagnostic workflow to isolate webhook reception from everything else.
Create a separate workflow with the following nodes and settings:
| Node | Setting | Value |
|---|---|---|
| Webhook | HTTP Method | POST |
| Webhook | Path | diagnostics/webhook-check |
| Webhook | Respond | Using Respond to Webhook Node |
| Respond to Webhook | Respond With | JSON |
| Respond to Webhook | Response Body | {"received":true} |
| Respond to Webhook | Response Code | 200 |
Connect the Webhook node directly to the Respond to Webhook node. Configure appropriate authentication or restrict access to the diagnostic endpoint, then publish or activate the workflow.
Save this shell script as webhook-check.sh:
#!/usr/bin/env bash
set -euo pipefail
URL="${1:?Usage: bash webhook-check.sh WEBHOOK_URL}"
curl --silent --show-error --fail-with-body \
--connect-timeout 10 \
--max-time 30 \
--request POST "$URL" \
--header 'Content-Type: application/json' \
--data '{"event":"diagnostic.check","id":"test-001"}' \
--write-out '\nHTTP: %{http_code}\nFirst byte: %{time_starttransfer}s\nTotal: %{time_total}s\n'
This script requires Bash and a curl version that supports --fail-with-body. Add the authentication header or other credentials required by your diagnostic endpoint before running it. Do not hardcode production secrets in a script that will be committed to source control.
Run it against the Production URL:
bash webhook-check.sh \
'https://automation.example.com/webhook/diagnostics/webhook-check'
The expected response body and HTTP status are:
{"received":true}
HTTP: 200
The script also prints measured response times, which depend on your deployment.
Use the results to narrow down the investigation:
| Diagnostic result | What to investigate next |
|---|---|
| Minimal workflow succeeds; original workflow fails | Original workflow registration, authentication, payload handling or downstream nodes |
| Both workflows return 404 | Public routing, publication status, endpoint prefix or HTTP method |
| Both workflows time out | Proxy connectivity, server availability, queue or worker health |
| Test succeeds; Production fails | Production registration, published version or production-specific routing |
| Internal request succeeds; external request fails | DNS, HTTPS, firewall or reverse proxy configuration |
| HTTP 200 but no saved execution appears | Execution-saving settings or whether the response came from the expected endpoint |
This diagnostic workflow is intentionally independent of your CRM, AI services and other external APIs. Remove or deactivate it after troubleshooting so that it does not remain an unnecessary public endpoint.
Check that the request uses the exact Production URL and HTTP method registered by the Webhook node. If the workflow is correctly published or active, investigate conflicting registrations, outdated published settings and reverse proxy routing. Inspect the response body to determine whether the 404 originated from n8n or another server.
The Test URL registers a temporary endpoint while the workflow editor listens for a test event. The Production URL remains registered while the workflow is published or active and the relevant n8n services are available. Use the Production URL for permanent external integrations.
Identify which component is terminating the request before changing any timeout settings. On self-hosted installations, reverse proxy and workflow execution settings may be configurable, but external providers and managed infrastructure can impose independent limits. For long-running workflows, acknowledging the request early and processing it asynchronously is usually more reliable.
Check that the main process, workers and any dedicated webhook processors can access the same Redis queue and database. Verify that workers are consuming executions and that production webhook traffic is routed to the correct service. A successful manual test does not necessarily confirm that production workers are functioning.
Compare the application's actual HTTP method, URL, authentication headers, content type and payload with your successful curl request. Also check whether the application requires a particular response status, verification challenge or signature-validation procedure. Some providers impose connection and response deadlines that differ from those used during manual testing.
The most reliable troubleshooting order is to verify webhook registration, send a controlled HTTP request, inspect execution history, check public routing and then investigate downstream processing or queue infrastructure. This sequence prevents unnecessary server changes when the actual problem is a mismatched URL, HTTP method or unpublished workflow.
If you need help diagnosing an existing n8n deployment or designing more reliable webhook-based workflows, Sharcon provides n8n and AI automation development services for business integrations and automated processes.

CEO of Sharcon LLC
15+ years in marketing and development. Leading a team of 30+ professionals at Sharcon.
Zoho CRM offers affordable customization and sales automation, while HubSpot excels at ease of use and integrated marketing tools.
llms.txt is a proposed Markdown file that helps AI systems discover website content. Learn how to create one and whether it benefits SEO.
Learn 8 practical steps to earn ChatGPT and Perplexity citations through crawler access, useful content, technical SEO, and visibility tracking.