Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangs Homebridge constantly - (Callback) #32

Open
luissimoes opened this issue Feb 21, 2019 · 0 comments
Open

Hangs Homebridge constantly - (Callback) #32

luissimoes opened this issue Feb 21, 2019 · 0 comments

Comments

@luissimoes
Copy link

this is happening for a couple of weeks now... and because Homebridge restarted I only noticed a few days ago

Here from the logs....
[7261]: /usr/lib/node_modules/homebridge-sensibo-sky/lib/sensiboapi.js:50
[7261]: if (callback) callback(str);
[7261]: ^
: homebridge.service: Main process exited, code=exited, status=1/FAILURE
: homebridge.service: Unit entered failed state.
: homebridge.service: Failed with result 'exit-code'.

Anyone please an idea?


PS
seems to be in the section of the sensiboapi.js

_ var req = http.request(options, function(response) {

            response.on('data', function (chunk) {
            str += chunk;
            });

            response.on('end', function () {
                if (debug) console.log("[Sensibo API Debug] Response in http:\n", str);
                try {
                    str = JSON.parse(str);
                } catch(e) {
                    if (debug) {
                                    console.log("[Sensibo API Debug] e.stack:\n", e.stack);
                            console.log("[Sensibo API Debug] Raw message:\n", str);
                            }
                    str = undefined;
                }

_

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant