Sharcon AI Automation CompanySHARCON
Back to Blog
n8n
webhook troubleshooting
workflow automation
reverse proxy
api integrations

n8n Webhook Not Working? Causes and Fixes

December 4, 2026

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

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.

1. Diagnose Your n8n Webhook Error First

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.

SymptomCommon causeFirst thing to check
404 Not FoundWebhook not registered, incorrect URL or HTTP methodWorkflow publication status and Webhook node settings
401 UnauthorizedMissing or incorrect authenticationWebhook authentication settings and request headers
403 ForbiddenAccess restrictions, firewall or proxy rulesIP restrictions and proxy configuration
405 Method Not AllowedHTTP method rejected by an intermediary or endpointGET versus POST and proxy rules
413 Payload Too LargeRequest exceeds a configured size limitProxy and n8n payload limits
500 Internal Server ErrorWorkflow or server-side failuren8n execution history and logs
502 Bad GatewayReverse proxy cannot reach n8nContainer status and upstream address
504 Gateway TimeoutUpstream response takes too longWebhook response mode and execution duration
200 OK but nothing happensImmediate acknowledgment, incorrect endpoint or downstream failureWorkflow execution history
Works locally but not externallyDNS, firewall, HTTPS or reverse proxy problemPublic endpoint accessibility
Test URL works but Production URL failsWorkflow not published or activeProduction 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.

Send a controlled webhook request with curl

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.

2. n8n Webhook Test vs Production URL

The n8n Webhook node provides two different URLs. They are not interchangeable.

SettingTest URLProduction URL
Default endpoint prefix/webhook-test//webhook/
Primary purposeDevelopment and debuggingLive integrations
RegistrationWhile the editor is listening for a test eventWhile the workflow is published or active
AvailabilityTemporaryPersistent while registered and n8n is available
Incoming dataAppears in the editor during testingAvailable through saved production executions
Suitable for external production systemsNoYes

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.

How to make the n8n Test URL work

  1. Open the workflow containing your Webhook node.
  2. Select the Webhook node.
  3. Confirm its HTTP Method and Path settings.
  4. Select the Test URL.
  5. Click Listen for test event.
  6. Send a matching HTTP request while n8n is listening.
  7. Inspect the incoming headers, query parameters and body in the node output.

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.

How to make the n8n Production URL work

  1. Finish configuring and testing the workflow.
  2. Save your changes and publish the workflow, or activate it in older n8n versions that use an Active toggle.
  3. Open the Webhook node and copy its Production URL.
  4. Replace the Test URL in the external application with the Production URL.
  5. Send a controlled request.
  6. Open the Executions view and verify the result.

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.

3. How to Fix an n8n Webhook 404 Error

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.

Check the HTTP method

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.

Check the complete webhook path

Compare the URL configured in the sending application with the URL shown inside the Webhook node. Check for:

  • /webhook-test/ instead of /webhook/.
  • Missing or duplicated path segments.
  • Incorrect capitalization or unexpected trailing slashes.
  • An outdated hostname after a server migration.
  • A changed Webhook node path that has not been published.
  • Custom webhook endpoint prefixes configured through environment variables.

Copy the complete generated URL rather than constructing it manually.

Check for conflicting webhook registrations

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

Identify which server returned the 404

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.

4. Fix Incorrect n8n Webhook URLs Behind 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.

Configure WEBHOOK_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.

Check Nginx forwarding

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.

Verify public network accessibility

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.

5. How to Fix an n8n Webhook Timeout

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.

Choose the correct webhook response mode

The Webhook node provides different response modes for different integration requirements.

Response modeBehaviorAppropriate use
ImmediatelyAcknowledges the incoming request without waiting for downstream processingEvent notifications and asynchronous processing
When Last Node FinishesWaits for the workflow to finish and returns its configured resultShort synchronous operations
Using Respond to Webhook NodeSends a response when the workflow reaches the response nodeCustom 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.

Use a controlled acknowledgment workflow

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.

Measure where the timeout occurs

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.

Should you increase the Nginx timeout?

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.

6. Troubleshoot n8n Queue Mode Webhooks

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.

Understand the queue mode request flow

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.

Verify queue mode environment settings

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.

Check whether workers are running

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.

Check reverse proxy routing for dedicated webhook processors

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.

7. Webhook Returns 200 but the Workflow Does Not Work

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.

Check the incoming payload structure

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.

Account for duplicate webhook deliveries

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.

8. Copy-Ready n8n Webhook Diagnostic Workflow

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:

NodeSettingValue
WebhookHTTP MethodPOST
WebhookPathdiagnostics/webhook-check
WebhookRespondUsing Respond to Webhook Node
Respond to WebhookRespond WithJSON
Respond to WebhookResponse Body{"received":true}
Respond to WebhookResponse Code200

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 resultWhat to investigate next
Minimal workflow succeeds; original workflow failsOriginal workflow registration, authentication, payload handling or downstream nodes
Both workflows return 404Public routing, publication status, endpoint prefix or HTTP method
Both workflows time outProxy connectivity, server availability, queue or worker health
Test succeeds; Production failsProduction registration, published version or production-specific routing
Internal request succeeds; external request failsDNS, HTTPS, firewall or reverse proxy configuration
HTTP 200 but no saved execution appearsExecution-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.

Mistakes to avoid

  • Using the Test URL in a live integration: Test listeners are temporary and are not designed for permanent webhook delivery.
  • Testing POST webhooks by opening them in a browser: The browser normally sends GET, which may not match the registered method.
  • Editing a workflow without publishing the changes: The production endpoint may still use an older version of the workflow.
  • Treating every 404 as a server outage: Identify whether the response originates from n8n or an intermediary before changing infrastructure.
  • Restarting containers instead of applying updated environment variables: Recreate affected services when their Compose configuration changes.
  • Increasing timeouts without investigating execution duration: The sender may impose a shorter timeout that you cannot control.
  • Assuming HTTP 200 means processing succeeded: An acknowledgment can be returned before the workflow completes.
  • Ignoring duplicate delivery: Retried requests can repeat business actions unless the workflow is idempotent.
  • Disabling authentication to make a webhook work: Diagnose authentication using valid credentials or a restricted diagnostic endpoint instead of exposing sensitive production operations.
  • Logging complete webhook payloads indiscriminately: Headers and request bodies may contain credentials, customer information or other sensitive data.

Frequently asked questions

Why is my n8n webhook returning 404 even though the workflow is active?

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.

What is the difference between the n8n webhook Test URL and Production URL?

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.

How do I increase the n8n webhook timeout?

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.

Why are n8n webhooks not working in queue mode?

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.

Why does my n8n webhook work in curl but not from another application?

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.

Fix the underlying problem, not just the error

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.

Max Lebedev

Max Lebedev

CEO of Sharcon LLC

15+ years in marketing and development. Leading a team of 30+ professionals at Sharcon.

Related Articles

zoho crm
hubspot
December 1, 2026

Zoho CRM offers affordable customization and sales automation, while HubSpot excels at ease of use and integrated marketing tools.

llms.txt
technical seo
November 27, 2026

llms.txt is a proposed Markdown file that helps AI systems discover website content. Learn how to create one and whether it benefits SEO.

answer engine optimization
ai search optimization
November 24, 2026

Learn 8 practical steps to earn ChatGPT and Perplexity citations through crawler access, useful content, technical SEO, and visibility tracking.