question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getaddrinfo ENOTFOUND api.telegram.org

See original GitHub issue
Unhandled rejection Error: getaddrinfo ENOTFOUND api.telegram.org api.telegram.org:443
    at errnoException (dns.js:26:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)

This error every day. I think it’s because long plain. Maybe add live reload when exception?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
danger89commented, Mar 25, 2022

It’s actually still not solved after 6 years

0reactions
danger89commented, Jul 14, 2022

I also get sometimes getaddrinfo EAI_AGAIN api.telegram.org, often after a system reboot. And yes my DNS resolver is correctly configured.

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: Requires:) in the Docker service file:

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target docker.socket firewalld.service containerd.service
Wants=network-online.target
Requires=docker.socket containerd.service

Although I see that containerd.service requires network.target as dependency. Maybe this isn’t enough or on the wrong level or it should use network-online.target instead of network.target? Or After=network-online.target Wants=network-online.target or maybe better: After=nss-lookup.target should be added.

Restarting the specific docker container manually always fixes the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

getaddrinfo ENOTFOUND api.telegram.org (Telegraf)
This is my code const config = require('./config.json'); const {Telegraf} = require('telegraf'); // require('dotenv').config(); const bot ...
Read more >
Telegram node-red is no longer working - General
I have an inject node that I am using to test and I get this message after a few seconds that the message...
Read more >
getaddrinfo ENOTFOUND api.telegram.org - Bountysource
Coming soon: A brand new website interface for an even better experience!
Read more >
Node.js Error Message “getaddrinfo ENOTFOUND localhost ...
Today I want to go over a quick fix to an error that had me very confused when I first started my program...
Read more >
即使电脑处于休眠模式,如何使用Wifi保持nodejs程序运行?
... getaddrinfo ENOTFOUND api.telegram.org"} 。 我不能让我的电脑一直处于休眠模式,所以我想知道是否有一种方法可以防止我的电脑在休眠模式下断开与Wifi的连接。
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found