Avoid 104, Connection reset by peer

Python and python framework

Moderator: leecollings

Post Reply
Filip
Posts: 135
Joined: Thursday 03 November 2016 10:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Avoid 104, Connection reset by peer

Post by Filip »

Hi,
I have created by own smart home devices connected through websockets (with a python plugin in Domoticz).
If for some reason the device breaks the connection (eg after a reboot due to a software update), an error in Domoticz in generated "104, Connection reset by peer".
However I would expect coming nicely into the onDisconnect without any additional error.
Does somebody know how to avoid this error in a python plugin?
Thanks for your help.
Filip
Post Reply