bstuff / haier-ac-remote

72 stars 15 forks source link

Error: read ECONNRESET #3

Closed agafirss closed 4 years ago

agafirss commented 4 years ago

Everything worked fine, but recently when turning on, an error began to appear in the logs

> [5/13/2020, 10:06:29 AM] Error: read ECONNRESET
>     at TCP.onStreamRead (internal/stream_base_commons.js:200:27)
> [5/13/2020, 10:06:32 AM] [1] [Error [TimeoutError]: Timeout has occurred] {
>   message: 'Timeout has occurred',
>   name: 'TimeoutError'
> }

changing ip address, deleting and setting the air conditioner again did not help control via a native application SmartAir2 works.

exotsk commented 4 years ago

i have the same. HOOBS 3.2.6 docker. /hoobs/etc # node --version v12.16.2 npm@6.14.4

`25.05.2020, 22:31:26 Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:205:27)

25.05.2020, 22:31:26 Got SIGTERM, shutting down Bridge...

25.05.2020, 22:31:29 [Кондиционер] [Error [TimeoutError]: Timeout has occurred] { message: 'Timeout has occurred', name: 'TimeoutError' }`

on 0.4.53 clear dock container

[5/26/2020, 12:09:56 PM] Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:205:27) [5/26/2020, 12:09:56 PM] Got SIGTERM, shutting down Homebridge... [5/26/2020, 12:09:59 PM] [Living Room Conditioner] [Error [TimeoutError]: Timeout has occurred] [5/26/2020, 12:09:59 PM] [Living Room Conditioner] Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed at doWrite (_stream_writable.js:399:19) at writeOrBuffer (_stream_writable.js:387:5) at Socket.Writable.write (_stream_writable.js:318:11) at send (/homebridge/node_modules/homebridge-haier-ac/node_modules/haier-ac-remote/dist/HaierAC.js:37:8) at HaierAC._sendRequest (/homebridge/node_modules/homebridge-haier-ac/node_modules/haier-ac-remote/dist/HaierAC.js:141:9) at HaierAC.on (/homebridge/node_modules/homebridge-haier-ac/node_modules/haier-ac-remote/dist/HaierAC.js:112:21) at HaierAC. (/homebridge/node_modules/homebridge-haier-ac/node_modules/haier-ac-remote/dist/HaierAC.js:120:28) at Generator.next () at /homebridge/node_modules/homebridge-haier-ac/node_modules/haier-ac-remote/dist/HaierAC.js:8:71 at new Promise () { code: 'ERR_STREAM_DESTROYED' }

bstuff commented 4 years ago

This is an issue in haier-ac-remote lib. There must be a mechanism to check if connection is alive. Feel free to make a pull-request!

agafirss commented 4 years ago

Not work the same problem [6/19/2020, 10:19:09 AM] Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:200:27)

cloudwalker87 commented 4 years ago

I have the same thing. I initially thought the issue was that my host (ubuntu 18.4) used IPv6 so disabled this, but I can't get it work

[6/19/2020, 9:34:29 PM] Homebridge is running on port 51289. [6/19/2020, 9:34:52 PM] Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:205:27) [6/19/2020, 9:34:52 PM] Got SIGTERM, shutting down Homebridge... [6/19/2020, 9:34:55 PM] Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:205:27)

ghost commented 4 years ago

Hi @bstuff , unfortunately still same problem. Latest homebridge + latest version of your plugin. Please help! :)

Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:205:27)

xnakk commented 3 years ago

Was this issue ever fixed ? I'm getting this error when trying to turn on the AC

[3/19/2021, 8:14:06 PM] Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:209:20) [3/19/2021, 8:14:06 PM] Got SIGTERM, shutting down Homebridge... [3/19/2021, 8:14:09 PM] Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:209:20) [3/19/2021, 8:14:11 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [3/19/2021, 8:14:16 PM] [HB Supervisor] Restarting Homebridge...

scorpiooo commented 3 years ago

Any progress on this issue? Is this due to new firmware update (R_1.0.00/e_2.5.14) ?

fayewave commented 3 years ago

The devices appear in HomeKit but when I interact with them they immediately undo anything I've done, the error ECONNRESET appears in the log, then HomeBridge restarts itself.

Lennys26 commented 2 years ago

It does not look like this was ever resolved. I have retested on separate installs, different Pi's, different model Pi's.

Does anyone have a workaround (or another working plugin)?

[22/12/2021, 13:26:37] Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:220:20)
[22/12/2021, 13:26:37] Got SIGTERM, shutting down Homebridge...
[22/12/2021, 13:26:37] [Homebridge UI] [HapClient] [192.168.1.62:51974 (0E:74:17:9A:4D:6A)] Failed to set value for Office Conditioner.
[22/12/2021, 13:26:40] Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:220:20)
[22/12/2021, 13:26:42] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[22/12/2021, 13:26:42] [Homebridge UI] [HapClient] [192.168.1.62:51974 (0E:74:17:9A:4D:6A)] Failed to set value for Bedroom Conditioner.