ring: [Ring] RequestError: getaddrinfo ENOTFOUND api.ring.com

Bug Report

Describe the Bug

The plugin installs, configuration goes well but then it is not functional (video not showing, no reaction for doorbell button) and there is error message in log file every 5 seconds since the plugin starts.

To Reproduce

Steps to reproduce the behavior:

  • Start Homebridge
  • Attempt to open a video from doorbell in home app
  • Press the doorbell button on Ring doorbell
  • The video would be expected to be shown, but it’s not
  • There is no reaction, neither there are log records about the button pressing

Expected behavior

The video would be shown The HomePod gives a chime + there is a log record about the button press in the log

Screenshots/Logs

[12/24/2021, 9:24:41 PM] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/dings/active. getaddrinfo ENOTFOUND api.ring.com. Trying again in 5 seconds… [12/24/2021, 9:24:41 PM] [Ring] RequestError: getaddrinfo ENOTFOUND api.ring.com at ClientRequest.<anonymous> (/homebridge/node_modules/homebridge-ring/node_modules/got/dist/source/core/index.js:956:111) at Object.onceWrapper (events.js:422:26) at ClientRequest.emit (events.js:327:22) at ClientRequest.origin.emit (/homebridge/node_modules/homebridge-ring/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20) at TLSSocket.socketErrorListener (_http_client.js:469:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:80:21) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) { code: ‘ENOTFOUND’, timings: { start: 1640373881091, socket: 1640373881091, lookup: 1640373881138, connect: undefined, secureConnect: undefined, upload: undefined, response: undefined, end: undefined, error: 1640373881138, abort: undefined, phases: { wait: 0, dns: 47, tcp: undefined, tls: undefined, request: undefined, firstByte: undefined, download: undefined, total: 47 } } } [12/24/2021, 9:24:44 PM] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/ring_devices. getaddrinfo ENOTFOUND api.ring.com. Trying again in 5 seconds… [12/24/2021, 9:24:44 PM] [Ring] RequestError: getaddrinfo ENOTFOUND api.ring.com at ClientRequest.<anonymous> (/homebridge/node_modules/homebridge-ring/node_modules/got/dist/source/core/index.js:956:111) at Object.onceWrapper (events.js:422:26) at ClientRequest.emit (events.js:327:22) at ClientRequest.origin.emit (/homebridge/node_modules/homebridge-ring/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20) at TLSSocket.socketErrorListener (_http_client.js:469:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:80:21) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) { code: ‘ENOTFOUND’, timings: { start: 1640373884516, socket: 1640373884516, lookup: 1640373884563, connect: undefined, secureConnect: undefined, upload: undefined, response: undefined, end: undefined, error: 1640373884563, abort: undefined, phases: { wait: 0, dns: 47, tcp: undefined, tls: undefined, request: undefined, firstByte: undefined, download: undefined, total: 47 } } }

Additional context

None

Homebridge Ring Config

Post homebridge-ring platform config without sensitive information


{
    "refreshToken": "[token removed as sensitive info]",
    "debug": true,
    "platform": "Ring"
}

Environment

  • OS: Alpine Linux (3.12.1)
  • Node.js: v14.15.1
  • NPM: v6.14.8
  • homebridge-ring: 9.23.0
  • homebridge: v1.3.8
  • hoobs: N/A

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Thanks so much for your reply. I will dig into DNS issue then

I have a mesh wifi system from TP-Link but my Homebridge server is hardwired to my network through ethernet…