Telegram node error related to ports

Hi, i am starting with n8n, i managed to install it on Heroku, using the npm version, not docker. When i try to use the telegram trigger node, it shows this error:
Show Details Telegram Trigger: Bad Request: bad webhook: Webhook can be set up only on ports 80, 88, 443 or 8443

i checked my Heroku config, and the prot, is set to 443, it says:
N8N_PORT 443. in the Heroku´s settings.

So i don´t understand why it keeps failing, other nodes like OpenAi, connected and worked properly retriving the info.
When i run n8n locally with --tunnel, the telegram trigger works.

Sorry if i am duplicating the post, i saw another post related to the same issue but was very old and unanswerd.

Thanks.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Is Running via npm on Heroku, im not sure about the version but i installed it yesterday so it should be the latest. I did not configured a database yet.

In the telegram node, you can see the webhook urls at the top.
Can you check what port that url is using?

1 Like

Thanks for answering. Oh i see, in the webhook url you mentioned, it says :53490, why is it not taking the one configured? Also, i can not edit the url in the image you posted, right?

Also i checked the n8n version: n8n Version 1.51.0

Hey @Hiko900

You would need to set the url using the WEBHOOK_URL env option excluding the port and make sure that your instance can be accessed on that url. If it says :53490 it would suggest you have this set somewhere in an option.

1 Like

Worked like a charm! Setting that environment variable on Heroku modified the url in the webhook removing the port and now it works! Thanks for the help!

2 Likes

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