Skip to content
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

Uncaught error Error: getaddrinfo ENOTFOUND #108

Open
everhardt opened this issue Sep 21, 2018 · 2 comments
Open

Uncaught error Error: getaddrinfo ENOTFOUND #108

everhardt opened this issue Sep 21, 2018 · 2 comments
Labels

Comments

@everhardt
Copy link

I've got a service that uses this package to connect to a Tradfri lamp when the service is started. I've configured the following options:

{
  useRawCoAPValues: false,
  watchConnection: true,
}

After it ran for a long time, the following uncaught error terminated my service:

{
  code: ENOTFOUND, 
  errno: ENOTFOUND, 
  hostname: [removed the actual hostname], 
  stackframes: [
    {
      file_name: dns.js, 
      line_number: 57
    }
  ], 
  syscall: getaddrinfo
}

I'm sure that this package is causing the error, as the hostname in the error is only used for the Tradfri lamp. I suspect this error is caused by the connection watcher, that it failed to catch the DNS error when the DTLS/UDP instance is reconnecting. I spent half an hour digging in the node-coap-client and node-dtls-client packages but failed to find the cause.

@AlCalzone AlCalzone added the bug label Sep 21, 2018
@AlCalzone
Copy link
Owner

Thanks for the report. I won’t be able to look at this during the next 4 weeks, so please don’t expect any quick resolution.
Your suspicion might be on the right track.

@realjax
Copy link

realjax commented Jul 5, 2019

Any news on this by an y change? I ran into this a few times myself recently:

Error: getaddrinfo ENOTFOUND tradfri-gateway-[ADDRESS-removed].local at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:58:26)

@realjax realjax mentioned this issue Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants