Hello Hugging Face Community,
I’m encountering a persistent network connection issue with my n8n instance hosted on a Hugging Face Space, and I’m hoping for some guidance.
Problem Description: My n8n workflow, which includes a node attempting to interact with the Telegram Bot API, is consistently failing with connection errors. The primary and most specific error I’m seeing repeatedly is:
The connection cannot be established, this usually occurs due to an incorrect host (domain) value getaddrinfo ENOTFOUND api.telegram.org
This error suggests a DNS resolution failure for api.telegram.org
specifically from within the Hugging Face Space environment.
Context:
- Application: n8n
- Hosting: Hugging Face Spaces
- Goal: The n8n workflow needs to make outbound HTTP requests to
api.telegram.org
.
Troubleshooting Steps Taken:
- Verified Target Host: I’ve meticulously checked the
api.telegram.org
URL in my n8n Telegram node configuration for any typos, and it appears correct. - External Reachability: I’ve confirmed that
api.telegram.org
is perfectly reachable and resolvable from my local machine (e.g., viaping
and web browser). - Wait and Retry: I’ve waited for some time and retried running the workflow, but the error persists.
- Space Restart/Redeploy: I have tried restarting/re-deploying my Hugging Face Space to clear any transient environment issues.
- Hugging Face Status Page: I’ve checked the Hugging Face status page and haven’t found any reported widespread network issues.
Given that the error is explicitly getaddrinfo ENOTFOUND api.telegram.org
and my Space is unable to resolve this common domain, it seems like there might be an underlying DNS or network configuration issue specific to my Space’s environment.
Has anyone else experienced similar ENOTFOUND
errors from their Hugging Face Spaces when trying to connect to standard external APIs like Telegram? Are there any specific network settings or diagnostic steps I can perform within the Space itself, or any known limitations that might cause this?
Any insights or suggestions would be greatly appreciated!
Thank you for your time and help.