hi,
when I’m trying to set credentials for telegram I get this error message.
-
n8n version: 1.105.4
-
Running n8n via : npm
-
Operating system: windows 11
hi,
when I’m trying to set credentials for telegram I get this error message.
n8n version: 1.105.4
Running n8n via : npm
Operating system: windows 11
Hey @S_Mahmood_H hope all is good. Welcome to the community.
You are running n8n via npx, what is your WEBHOOK_URL is set to? If not set, you probably want to set it, as telegram will attempt to connect to your n8n instance to publish events (for the trigger).
See about setting the webhook url here:
If you are looking to set a reverse proxy for n8n, take a look at the following videos:
or
These videos explain how to use NGROK for reverse proxying to your instance. They both use docker instead of n8n, and this is the part that is going to be different for you. If you want to continue using n8n, after configuring ngrok, you will need to set WEBHOOK_URL environment variable when starting your n8n instance.
This is probably done like so:
in powershell
$env:WEBHOOK_URL="https://your_ngrok_domain.com"
npx n8n
or in cmd
set WEBHOOK_URL=https://your_ngrok_domain.com
npx n8n
or using .env file:
Create a .env file:
WEBHOOK_URL=https://your_ngrok_domain.com
Then run:
npx n8n
I installed ngrok and followed the steps you wrote.
I followed the steps you said:
set WEBHOOK_URL=http://localhost :5555
npx n8n
But when I run the following command, I get an error:
ngrok http ``http://localhost:5555
ERROR: authentication failed: We do not allow agents to connect to ngrok from your IP address (46.143.69.166).
ERROR:
ERROR: ERR_NGROK_9040
ERROR: ERR_NGROK_9040 | ngrok documentation
ERROR:
`
It appears that ngrok is not working with Iranian ip addresses. You could try to do a similar thing with cloudflare, not sure what their policies are. You will likely need your own domain.
As an alternative, research which other service similar to ngrok provide the same service.
Yes, I tested with a VPN and the connection was successful. Unfortunately, many services are banned for us.
Thanks for your time. ![]()
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.