Supereg / homebridge-http-switch

Powerful http switch for Homebridge: https://github.com/homebridge/homebridge
ISC License
218 stars 36 forks source link

Error on stateless http switch #82

Closed marioaprea closed 1 year ago

marioaprea commented 3 years ago

When I send command to http-switch I found this error on log of home bridge:

[9/1/2021, 15:12:31] [CamSaloneOff] Error occurred setting state of switch: socket hang up
[9/1/2021, 15:12:31] [CamSaloneOff] Error: socket hang up
    at connResetException (internal/errors.js:607:14)
    at Socket.socketOnEnd (_http_client.js:493:23)
    at Socket.emit (events.js:327:22)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  code: 'ECONNRESET'
}

The switch is configured:

        {
            "accessory": "HTTP-SWITCH",
            "name": "CamSaloneOn",
            "switchType": "stateless",
            "timeout": 1000,
            "onUrl": "http://192.168.1.44/RadioBridge/CameraSaloneOn"
        },

The switch works well, the camera lights turn on, but there is this error on log and an error on iPhone that send me that device didn't respond. Why'?