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)?
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.15.12</center>
</body>
</html>
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**
Ludwig
June 10, 2024, 7:30pm
2
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 docker.n8n.io/n8nio/n8n start --tunnel
Ludwig
June 10, 2024, 7:59pm
4
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: https://some-random-thing.hooks.n8n.cloud
I thought that n8n.cloud was creating the Webhook Tunnel for me.
Then I created just a webhook this is the following :
http://localhost:5678/webhook-test/3ae2f5ab-dea3-4a89-ab88-29dc6f032c8b
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: https://some-random-thing.hooks.n8n.cloud as where to send the webhook, and that would in turn, hit my local server
Ludwig
June 11, 2024, 3:10am
6
Ah thank you for the clarity there. This previous answer should help address your question. Tunnel service - #2 by MutedJam