-
Notifications
You must be signed in to change notification settings - Fork 1.6k
getaddrinfo ENOTFOUND api.telegram.org #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This problem makes the OS reboot |
Possible fixes:
Related issues: Please provide us with feedback. |
I'm having a similar issue: "node-telegram-bot-api": "^0.24.0", The nodejs application is running inside docker container, but it used to work nice until started raising this errors..
|
My bot is inside a Docker, I just stopped it and start again and everything was ok. |
i have this issue all the time. restarting it does nothing because since i've got the latest version of node.js it completely shuts node down and the container goes down, so its constantly restarting all the time. network is bridged so it does have internet just fine. its its own container so dns cache shouldn't even be a thing since containers are cleared upon reboot. |
@dianjuar @MothGirlMusic not sure if you sorted your issue, but sometimes this ENOTFOUND issue is due to the underlying system not finding an IPv6 address for the host. Some people report here adding It looks like |
It's actually still not solved after 6 years |
any updates ? |
if you are using docker try to restart it, it works fine with me after restarting docker service
|
I also get sometimes My guess is that Docker is actually starting-up faster the Docker container than my system network / DNS resolver is ready to handle the requests. Something like that. My bet is that my systemd is missing requires network dependency (see:
Although I see that containerd.service requires Restarting the specific docker container manually always fixes the issue. |
I already have a error handling, but it will not catch this telegramBot.on('error', (error) => {
}) Looking at the error traces, I suspect the Meaning you need to Once you catched the @yagop Ideally the Should we update the example code as well in your README? So developers have |
I have installed telegraf npm package and express and lot of other stuffs, but the issue is when i am running my server then i am getting this error in my terminal -> FetchError: request to https://api.telegram.org/bot7031915653:[REDACTED]/getMe failed, reason: getaddrinfo ENOTFOUND api.telegram.org My node version is 20.11.0 If you any guys has solutions of it, please reply here. |
This error every day. I think it's because long plain. Maybe add live reload when exception?
The text was updated successfully, but these errors were encountered: