tasict / homebridge-daikin-local-platform

Apache License 2.0
14 stars 4 forks source link

Frequent crash occurring #7

Open jadonbaker opened 1 month ago

jadonbaker commented 1 month ago

I'm getting this crash occur which will cause home bridge or the child bridge to terminate and restart.

homebridge-daikin-local-platform v1.1.1 Node.js Version v20.17.0

`[20/09/2024, 10:56:03] [Daikin Local Platform] Restoring accessory 'Bedroom' (D810689551F8) from cache.
[20/09/2024, 10:56:24] [Homebridge UI] Terminal session ended.

/var/lib/homebridge/node_modules/homebridge-daikin-local-platform/node_modules/axios/lib/core/AxiosError.js:92
  AxiosError.call(axiosError, error.message, code, config, request, response);
             ^
Error: read ECONNRESET
    at Function.AxiosError.from (/var/lib/homebridge/node_modules/homebridge-daikin-local-platform/node_modules/axios/lib/core/AxiosError.js:92:14)
    at RedirectableRequest.handleRequestError (/var/lib/homebridge/node_modules/homebridge-daikin-local-platform/node_modules/axios/lib/adapters/http.js:620:25)
    at RedirectableRequest.emit (node:events:519:28)
    at ClientRequest.eventHandlers.<computed> (/var/lib/homebridge/node_modules/homebridge-daikin-local-platform/node_modules/follow-redirects/index.js:39:24)
    at ClientRequest.emit (node:events:519:28)
    at emitErrorEvent (node:_http_client:108:11)
    at Socket.socketErrorListener (node:_http_client:511:5)
    at Socket.emit (node:events:519:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at Axios.request (/var/lib/homebridge/node_modules/homebridge-daikin-local-platform/node_modules/axios/lib/core/Axios.js:45:41)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at DaikinDevice.queryDevice (/var/lib/homebridge/node_modules/homebridge-daikin-local-platform/src/daikin-local.ts:60:22)
    at DaikinDevice.fetchDeviceStatus (/var/lib/homebridge/node_modules/homebridge-daikin-local-platform/src/daikin-local.ts:87:22)
    at ClimateAccessory.refreshDeviceStatus (/var/lib/homebridge/node_modules/homebridge-daikin-local-platform/src/accessories/climate.ts:155:5)
[20/09/2024, 10:57:28] [Daikin Local Platform] Child bridge process ended
[20/09/2024, 10:57:28] [Daikin Local Platform] Process Ended. Code: 1, Signal: null`
jadonbaker commented 1 month ago

Looks like it's an issue with node v20.17.0 Have not noticed it occur on v18.20.4

Edit: actually it is occurring on 18.20.4