Getting 400 Bad Request and socket hang ups
Posted: Thursday 12 November 2015 9:41
Hi all,
I'm trying to use this - https://github.com/fergalom/node-spc-do ... binding.js to bind SPC Gateway to Domoticz
The script is pretty straightforward and pulls some variables (20 or so) and looks to push them to Domoticz.
Problem being, on first pass it creates and saves about 6 variables, next pass 2 or 3, then another 2 or 3, and then just starts to fail.
It will only get to around 11 variables before it wont do any more. Variables are all pretty much named same with number identifiers.
The requests and source all look fine, but I'm struggling to understand how it's failing with Domoticz.
Is there any limitations on number of open requests at a time? Do I need to slow down this script somewhat?
What else would cause a 400 Bad Request, on an otherwise normal looking request?
I also get some 'socket hang up's , again anything from Domoticz that would cause this?
I'm running v2.3552 loaded at the weekend. It's a pretty fresh install, about 20-30 switches added and some other scripts updating variables at 5min intervals.
Thanks,
Tom
I'm trying to use this - https://github.com/fergalom/node-spc-do ... binding.js to bind SPC Gateway to Domoticz
The script is pretty straightforward and pulls some variables (20 or so) and looks to push them to Domoticz.
Problem being, on first pass it creates and saves about 6 variables, next pass 2 or 3, then another 2 or 3, and then just starts to fail.
It will only get to around 11 variables before it wont do any more. Variables are all pretty much named same with number identifiers.
The requests and source all look fine, but I'm struggling to understand how it's failing with Domoticz.
Is there any limitations on number of open requests at a time? Do I need to slow down this script somewhat?
What else would cause a 400 Bad Request, on an otherwise normal looking request?
I also get some 'socket hang up's , again anything from Domoticz that would cause this?
I'm running v2.3552 loaded at the weekend. It's a pretty fresh install, about 20-30 switches added and some other scripts updating variables at 5min intervals.
Thanks,
Tom