Describe the problem/error/question
My telegram in the workflow is not working. After installing ngrok and changing the .env and the docker yml file i get the following in the webhook url:
https://5dd8-143-178-170-154.ngrok-free.app:5678/webhook-test/972bc6fd-0382-4755-8468-302920ec13ac/webhook
:5678 is behind the url and telegram is not accepting that. How can i fix this?
What is the error message (if any)?
n8n_1 | 400 - {“ok”:false,“error_code”:400,“description”:“Bad Request: bad webhook: Webhook can be set up only on ports 80, 88, 443 or 8443”}
Please share your workflow
i added a telegram api in my workflow and want to make it work with the help of ngrok http 5678
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
-
n8n version:
1.100.1 -
Database (default: SQLite):
none -
n8n EXECUTIONS_PROCESS setting (default: own, main):
-
Running n8n via (Docker, npm, n8n cloud, desktop app):
Docker -
Operating system:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
user@DESKTOP:~/n8n$ cat .env
WEBHOOK_TUNNEL_URL=https://5dd8-143-178-170-154.ngrok-free.app
N8N_BASIC_AUTH_USER=********
N8N_BASIC_AUTH_PASSWORD=**********
N8N_HOST=5dd8-143-178-170-154.ngrok-free.app
N8N_PROTOCOL=https
user@DESKTOP:~/n8n$ cat docker-compose.yml
version: “3”
services:
n8n:
image: n8nio/n8n
ports:
- “5678:5678”
env_file:
- .env
environment:
- WEBHOOK_TUNNEL_URL=${WEBHOOK_TUNNEL_URL}
- N8N_BASIC_AUTH_USER=${N8N_BASIC_AUTH_USER}
- N8N_BASIC_AUTH_PASSWORD=${N8N_BASIC_AUTH_PASSWORD}
- N8N_HOST=${N8N_HOST}
- N8N_PROTOCOL=${N8N_PROTOCOL}
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- N8N_RUNNERS_ENABLED=true
volumes:
- ./n8n_data:/home/node/.n8n