bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
169 stars 24 forks source link

[Bug]: Error: read ECONNRESET - Client disconnected #292

Closed smartmatic closed 7 months ago

smartmatic commented 7 months ago

Version

1.7.1

Node version

na

Operating System type

Docker

Operating system version

Home Assistant 2023.12.4

Describe the bug

My Homebase 3 is automatically detected from the Add-On in my network. So i am able to add the stationwithout additional parameters for the station in the configuration tab. But once the station is added i got the below error message.

I am also not able to add the Integration (station) via the IP from the Homebase 3. I can just use the the addess shown in the below log 0.0.0.0 or 127.0.0.1

To reproduce

  1. Remove Homebase 3
  2. Add Homebase 3 without additional parameters
  3. Check log

Screenshots & Logfiles

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 2024-01-01 20:29:36.186 INFO Eufy Security server listening on host 0.0.0.0, port 3000 2024-01-01 20:29:38.919 INFO Connected to station T803xxxxxxxx on host 109.250.61.131 and port 14926 2024-01-01 20:29:40.963 INFO Push notification connection successfully established 2024-01-01 20:29:41.011 INFO Push notification connection closed 2024-01-01 20:29:46.224 INFO Push notification connection successfully established 2024-01-01 23:23:54.291 INFO Client disconnected with ip: 127.0.0.1 port: 36652 code: 1006 reason: Abnormal Closure 2024-01-02 00:36:49.680 ERROR Push client - Socket Error { error: { cause: undefined, message: 'Error: read ECONNRESET', context: undefined, stacktrace: 'Error: read ECONNRESET\n' + ' at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)' } } 2024-01-02 00:36:49.703 INFO Push notification connection closed 2024-01-02 00:36:54.921 INFO Push notification connection successfully established 2024-01-02 08:45:03.093 INFO Client disconnected with ip: 127.0.0.1 port: 52228 code: 1000 reason: Normal Closure

Additional context

No response

bropat commented 7 months ago

ECONNRESET means the other side (client) of the TCP conversation abruptly closed its end of the connection.

smartmatic commented 7 months ago

ECONNRESET means the other side (client) of the TCP conversation abruptly closed its end of the connection.

What does that mean in normal words? Which other side and how can i solve this issue?

bropat commented 7 months ago

It's an issue on the client side which connects to eufy-security-ws. It's not an issue with eufy-security-ws.