Closed Scream4Life closed 2 years ago
I have never seen this error, but it hints that your Abus Secvest system is returning slightly malformed HTTP responses, which new Node versions are apparently more sensitive to. The Github discussion you linked seems to come to the same conclusion and according to it one of the possible workarounds is to configure your HTTP client to also accept invalid HTTP responses.
I cannot test it myself, but you may recover the situation by adding this insecureHTTPParser to the params of the HTTP request. If you have latest version of my plugin, locate it in your node_modules folder, you will find an index.js inside.
Around line 200 there is a block like this:
var params = {
url: url,
body: body,
method: this.httpMethod,
auth: {
user: this.auth.username,
pass: this.auth.password,
sendImmediately: this.auth.immediately
},
headers: {}
};
This is where that insecureHTTPParser belongs to, so change it to:
var params = {
url: url,
body: body,
method: this.httpMethod,
insecureHTTPParser: true,
auth: {
user: this.auth.username,
pass: this.auth.password,
sendImmediately: this.auth.immediately
},
headers: {}
};
Once done, give it a try.
Amazing! This helped. The error messages are gone and the accessory works properly again. Thanks you for your help!
I'm using this plugin to trigger my old Abus Secvest Alarm for years. This is my config so far
For some reason - and I think is has to do with a newer nodejs version - the plugin does not work for me anymore and the log shows these errors
I found a similar issue here on the web but have no clue what to do now.
I'm running Raspbian GNU/Linux Stretch (9) with Nodejs v16.16.0. Homebridge on v1.5.0 and nom 8.11.0