homebridge-http-temperature-humidity icon indicating copy to clipboard operation
homebridge-http-temperature-humidity copied to clipboard

Connection Refused of Backend Server results in complete homebridge crash

Open EdJoPaTo opened this issue 8 years ago • 5 comments

Error: connect ECONNREFUSED 127.0.0.1:3000 at doRequest (/usr/local/lib/node_modules/homebridge-httptemperaturehumidity/node_modules/sync-request/index.js:31:11) at Object.HttpTemphum.getState (/usr/local/lib/node_modules/homebridge-httptemperaturehumidity/index.js:51:12)

accessory could just set "not available" instead of full crash

EdJoPaTo avatar Aug 14 '16 17:08 EdJoPaTo

any luck on this? I have this same issue, really annoying, if one of my temp units goes off line, homebridge crashes completely.. any change we could make to not completely crash? ive had a play around but I'm not that good with js

paulobriennz avatar Nov 06 '16 11:11 paulobriennz

I fixed this in this commit: 8b5c97a0bb9d36a92be431515e7d20fb43f6e41a on my forked repo.

Waiting to be merged into this repository. :-)

roozbehf avatar Jan 17 '17 21:01 roozbehf

Same issue. Could you merge this fix to production?

jendaz avatar Jan 08 '18 09:01 jendaz

@jendaz: See #32 ;)

Looks like @lucacri is just not willing to accept this 🤔

EdJoPaTo avatar Jan 08 '18 10:01 EdJoPaTo

But it looks like that maybe it is fixed in last merge #29 because it is switched to different http library.

jendaz avatar Jan 08 '18 10:01 jendaz