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.

Ewelink Error: getaddrinfo ENOTFOUND as-pconnect4.coolkit.cc

See original GitHub issue

What issue do you have? Please be as thorough and explicit as possible.

My homebridge server will be stopped and when I check the log, it says Error: getaddrinfo ENOTFOUND as-pconnect4.coolkit.cc at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)

Details of your setup.

  • Do you use (1) Homebridge (+ config-ui), (2) Homebridge (CLI) or (3) HOOBS? I use HOOBS

  • Which version of Homebridge/HOOBS do you have? HOOBS 3.3.5

  • Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known. Raspberry Pi

  • Which version of this plugin (homebridge-ewelink) do you have? Has the issue started since upgrading from a previous version? 5.5.1. Yes I also had the same issue on pervious version so I updated it to 5.5.1 hoping it will solve the issue.

  • Which eWeLink devices do you have that are causing issues? Please include product models if applicable. I don’t believe it is specific to one model…

Please paste any relevant logs below.


Error: getaddrinfo ENOTFOUND as-pconnect4.coolkit.cc
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
bwp91commented, Mar 25, 2021

I have just released v5.6.0 (same as beta -7) hopefully (and it looks like) this will sort everything!

2reactions
bwp91commented, Mar 24, 2021

@estilles are you able to try the beta I have just pushed, v5.5.2-6. Make sure it’s the -6 version.

Some background information:

Once the plugin has logged into eWeLink, they provide a web address for the web socket connection. There are a range of addresses they provide for the Asia server, as-pconnect1.coolkit.cc, as-pconnect2.coolkit.cc, as-pconnect3.coolkit.cc, as-pconnect4.coolkit.cc, etc… The address provided at random and can change each hour that the plugin refreshes the connection.

It seems that the address ‘as-pconnect4.coolkit.cc’, although provided by eWeLink themselves, is causing these ENOTFOUND errors.

There is no way for the plugin to decide which address is provided by eWeLink, so the fix needs to be a ‘workaround’. It seems I need to ‘verify’ the address provided by ewelink, something I assumed would never need doing…

So in this beta, the plugin will now try and connect to the provided address, and if after 10 seconds it has failed, the plugin will try and request a different address to use. If this ‘as-pconnect4.coolkit.cc’ is provided again, the same will happen after 10 seconds, the plugin will request a new address. This will loop until a valid address has been given.

I hope this makes sense and the beta should

  1. stop homebridge from crashing in this particular ‘as-pconnect4.coolkit.cc’ case
  2. keep requesting a new address until the one provided works correctly

If you can get the beta installed and running for a while, let me know if you continue to get any errors!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node-red-contrib-ewelink - General
"RequestError: Error: getaddrinfo ENOTFOUND europe-api.coolkit.cc" ... I am totally new to this ewelink library and am lost on how to create ...
Read more >
Pairing failed? Read this before you try again
We call this process 'Pairing'. There are many different pairing methods provided by eWeLink app. To pair a device with the optimal method...
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