Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: read ECONNRESET #3

Closed
agafirss opened this issue May 13, 2020 · 9 comments · Fixed by #10
Closed

Error: read ECONNRESET #3

agafirss opened this issue May 13, 2020 · 9 comments · Fixed by #10
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@agafirss
Copy link

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
Copy link

exotsk commented May 25, 2020

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 bstuff added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels May 31, 2020
@bstuff
Copy link
Owner

bstuff commented May 31, 2020

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
Copy link
Author

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
Copy link

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
Copy link

ghost commented Sep 3, 2020

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
Copy link

xnakk commented Mar 19, 2021

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
Copy link

scorpiooo commented May 20, 2021

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

@fayewave
Copy link

fayewave commented Sep 11, 2021

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants