-
Notifications
You must be signed in to change notification settings - Fork 33
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
Handle request timeout error #18
Comments
Probably same as #7 Did you try catching and handling the errors from the promise? |
I don't know how to do this :(.
prom.catch method is fired on timeout error, but i don't know to do in callback , to stop exit app.listen. It's not the same as #7. I receive ETIMEOUT error from nodejs server. |
I meant same as in #7 as the errors are not handled by the user. The lib returns bluebird promises: http://bluebirdjs.com/docs/api-reference.html
With the catchRequestErrors the lib swallows errors and prints them. |
I did now like this:
and server still exit with error ETIMEDOUT. |
I think I solved. with the solution above. Yamaha.prototype.getRepeatInfo = function (input) { Yamaha.prototype.repeatOff = function (input) { Yamaha.prototype.repeatAll = function (input) { Yamaha.prototype.repeatOne = function (input) { Yamaha.prototype.getShuffleInfo= function (input) { Yamaha.prototype.shuffleOn = function (input) { Yamaha.prototype.shuffleOff = function (input) { Yamaha.prototype.menuCursorMove = function (listname, move) { Yamaha.prototype.menuPageMove = function (listname, move) { Yamaha.prototype.getSERVERList = function () { |
Hi, I succeed to create my own web app using your api. It's my first nodejs application.
I have one problem: from time to time my wireless network break, and in this case
Yamaha.prototype.SendXMLToReceiver method throw and timeout error, that cause my nodejs app to crash. I tried a lot of method to avoid app exit, without success.
Can you you help me?
Thx.
The text was updated successfully, but these errors were encountered: