Getting Error when listening for a Webhook

Describe the problem/error/question

Running n8n locally and trying to use a webhook, getting the following error when using either GET or POST

What is the error message (if any)?

<head><title>504 Gateway Time-out</title></head>
<center><h1>504 Gateway Time-out</h1></center>

Please share your workflow

I want to get a basic Webhook started and nothing else. I wanted to see if I could send a message locally from the internet to my test n8n server.

## Information on your n8n setup
- **n8n version: latest**
- **Database (default: SQLite): default**
- **n8n EXECUTIONS_PROCESS setting (default: own, main): default**
- **Running n8n via (Docker, npm, n8n cloud, desktop app): Docker**
- **Operating system: tested MAC and Linux**

Hi @Sif_Baksh Thanks for reaching out here. That sounds like a configuration issue with nginx. You might look into increasing your timeout period.

@Ludwig, sorry, new to n8n, and where in n8n docker run should I add the command?

docker run -it --rm --name n8n -p 5678:5678 -e N8N_SECURE_COOKIE="false" -v n8n_data:/home/node/.n8n start --tunnel

Hi @Sif_Baksh I’m sorry, I misunderstood. I thought you were trying to run n8n with nginx as a reverse proxy. If that’s not the case, where are you seeing this and how are you trying to test the webhook?

@Ludwig - I use the command above locally, and it generates the following.

Waiting for tunnel …
Tunnel URL:

I thought that was creating the Webhook Tunnel for me.

Then I created just a webhook this is the following :

But I thought I would hit the tunnel, and it would work. I guess I need something to front the connection on the tunnel.

So I thought I would use the Tunnel URL: as where to send the webhook, and that would in turn, hit my local server :pray:

Ah thank you for the clarity there. This previous answer should help address your question. Tunnel service - #2 by MutedJam