Telegram Trigger Errors

I’m running n8n locally and exposing it via a Cloudflare tunnel. I can connect to the server just fine, but the webhook for the Telegram Trigger seems to fail with:

Telegram Trigger: Bad Request: bad webhook: Failed to resolve host: Name or service not known

In case you’re wondering, yes I tried every solution found in the comments of the post that’s very similar to this one. Nothing worked and the post was never solved.

I’d be happy to answer questions, but the issue is quite straightforward I imagine. I’ve tried a PLETHORA of env variables and urls. Even tried the cloudflared tunnel --url http://localhost:5678/ command to get a new url but that url failed too.

Using an http link instead also fails btw.

A few guys in the discord suggested it’s because I’m trying to run things on Windows instead of a Linux server.

I’m going to expose my self-hosted n8n via cloudflare tunnel in the future. I don’t really understand this issue but here ‘s my opinion.

If you use the url http://localhost:5678/ to expose your n8n, you ‘re doing it wrong. First you need a public domain other than localhost, because localhost means communication inside your n8n container or something, if you use docker. And you may need proxy such as nginx plus certbot, for safe and balance, which better be deployed alone.

As i said, I don’t really understand it now and i’m replying you with my memory, so i can’t tell any more detail now. But I believe it will be resolved finally. Good luck !

It was in docker. Maybe that was the issue.

Fixed via running ngrok with http on 5678