ProudElm / solaredgeoptimizers

Intergration to get optimizers information from the SolarEdge portal
42 stars 12 forks source link

Error: Connection aborted.', RemoteDisconnected('Remote end closed connection without response') #45

Open bbird8 opened 1 year ago

bbird8 commented 1 year ago

I recently get connection errors, indicated in the log as

`This error originated from a custom integration.

Logger: custom_components.solaredgeoptimizers.sensor Source: custom_components/solaredgeoptimizers/sensor.py:178 Integration: SolarEdge Optimizers Data (documentation, issues) First occurred: 08:01:23 (2 occurrences) Last logged: 12:22:44

('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))`

followed by:

`This error originated from a custom integration.

Logger: custom_components.solaredgeoptimizers.sensor Source: helpers/update_coordinator.py:182 Integration: SolarEdge Optimizers Data (documentation, issues) First occurred: 08:01:23 (2 occurrences) Last logged: 12:22:44

Error fetching SolarEdgeOptimizer data: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))`

Sometimes it's working after a few minutes again, sometimes not working until I restart HA. Any idea?


Home Assistant 2023.3.6 Supervisor 2023.03.3 Operating System 9.5 Frontend 20230309.1 - latest

arjanhs commented 1 year ago

Having the same issue.

thesilentmiaow commented 1 year ago

Me too

Foxhill67 commented 1 year ago

Yep, same here. Home Assistant 2023.4.1 (Docker)

ProudElm commented 1 year ago

i've had also the same issue. But i fear it has something to do at the other end, at solaredge. the web request fails because of a error/timeout at there end. Only solution would be to make it that if a request fails, it will try again. I will try to see if a can make that, but it wont be any time soon, i'm now on holiday and cant acces my dev.

gjdv commented 1 year ago

Have a look at https://github.com/gjdv/packaging_solaredgeoptimizers/commit/df94fc124ac08068038e36611309e49683c8f6be It dramatically reduced the errors for me. Let me know if you'd like me to wrap it in a pull request. Happy to do so

ProudElm commented 1 year ago

hi, i will try it out but yes, put in a PR :)

gjdv commented 1 year ago

As per request: https://github.com/ProudElm/packaging_solaredgeoptimizers/pull/11

Doesn't cover all issues caused by the SE portal being instable, but as said, reduces problems a lot