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.
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.
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
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.
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!