N8n Trunas Scale webhook issue

Describe the problem/error/question

I’ve installed n8n at home on Truenas Scale from the store and I’ve setup a DNS to access it in https from outside through NAT in my internet box.

Every works fine to access it from outside but I don’t get the Telegram “On Message” trigger to work when discussing with my bot (I did test the same workflow on n8n cloud without any issues).

What would you suggest to check or test ?

What is the error message (if any)?

NA

Please share your workflow

Share the output returned by the last node

NA

Information on your n8n setup

  • n8n version: 1.86
  • Database (default: SQLite): Postgres 17
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: TrueNAS-24.10.0.2

Is the WEBHOOK_URL environment variable set in n8n such that it matches the external hostname you use to reach n8n from outside (i.e. what you have mapped in public DNS)?

When the Telegram Trigger node is activated, it sends the url to Telegram, so you need to configure n8n to “know” what the external URL should be (e.g. WEBHOOK_URL=https://my-chosen-dyndns-subdomain.the-shared-tld-name-whatever.com). Otherwise it will send Telegram the hostname:port that is only reachable within your LAN (e.g. http://truenas123:5678)

Nope I didn’t put an ENV variable for the WEBHOOK_URL parameter as the webhook_url shown in the Telegram workflow component was correct and matches the url I used to access n8n from the outside.

Putting the ENV variable did not fix it and the webhook_url is the same but I can see that the weebhook_url is depedent of the variable when set.

I’ve tried to send a POST request with postman with the webhook_url and basic auth with my n8n login credential and it return a 403 http code with “message”: “Provided secret is not valid”

webhook url is https://mysubdomainurl:8443/webhook-test/xxxxxxxxxxxxxxxxxxxxxx/webhook

Do I have to install Telegram node on m’y n8n server or check it’s running properly ?

I’ve finally create a CT on Proxmox with the Proxmox VE Helper-Scripts.

Then I’ve followed the official docker installation tutorial Docker Compose | n8n Docs that generate the SSL certificate inside traefik automatically.

I guess the point was to have a valid SSL certificate (and not the one by default from Truenas.

Now Telegram webhook work like a charm :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.