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

Error: socket hang up #7

Closed
SphtKr opened this issue Feb 28, 2016 · 1 comment
Closed

Error: socket hang up #7

SphtKr opened this issue Feb 28, 2016 · 1 comment

Comments

@SphtKr
Copy link

SphtKr commented Feb 28, 2016

Hitting an error based on some weird network condition, but I'm not sure how to catch this since it's asynchronous:

/usr/local/lib/node_modules/homebridge-yamaha/node_modules/yamaha-nodejs/node_modules/deferred/_ext.js:75
                        throw this.value;
                                  ^
Error: socket hang up
    at createHangUpError (_http_client.js:215:15)
    at Socket.socketOnEnd (_http_client.js:300:23)
    at Socket.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

You can see the downstream code here; it's possible that it's not defining an error callback in some case and that could be the problem...do you know if this should be properly caught if an error callback is always provided? Or is this something that needs to be (or can't easily be) caught at the yamaha-nodejs level?

@SphtKr
Copy link
Author

SphtKr commented Mar 1, 2016

Heh...never mind. Added failure callbacks in all cases and now the error is being caught. Thanks for your work!

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