MartinPham / homebridge-api

Homebridge GraphQL API, with characteristic subscriptions
16 stars 6 forks source link

ECONNREFUSED Error after some duration #1

Closed nabster13 closed 4 years ago

nabster13 commented 4 years ago

Hi (Thanks for writing this API, it is great). I'm using this plugin to poll my homebridge accessories and send the metrics data to a time series database. After some period of time (~2 days?), I start getting the following error, that doesn't resolve itself until I restart homebridge.

FetchError: request to http://:18110/ failed, reason: connect EC ONNREFUSED :18110
at ClientRequest. (/usr/src/app/node_modules/node-fetch/lib/index .js:1393:11) at ClientRequest.emit (events.js:311:20)
at Socket.socketErrorListener (_http_client.js:426:9)
at Socket.emit (events.js:311:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
message: 'request to http://:18110/ failed, reason: connect EC ONNREFUSED :18110',
type: 'system',
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED'