homebridge-http-switch icon indicating copy to clipboard operation
homebridge-http-switch copied to clipboard

Error on stateless http switch

Open marioaprea opened this issue 3 years ago • 0 comments

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'?

marioaprea avatar Jan 09 '21 14:01 marioaprea