swissmanu / harmonyhubjs-client

A Node.JS library which allows you to interact with your Logitech Harmony Hub.
https://github.com/swissmanu/harmonyhubjs-client
MIT License
155 stars 42 forks source link

Cannot login to hub - response is undefined #20

Closed dermotos closed 8 years ago

dermotos commented 8 years ago

node app /Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/lib/login/hub.js:63 if(response.identity && response.identity !== undefined) { ^

TypeError: Cannot read property 'identity' of undefined at Client. (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/lib/login/hub.js:63:15) at emitOne (events.js:78:13) at Client.emit (events.js:170:7) at Client.onStanza (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/index.js:231:14) at emitOne (events.js:78:13) at Connection.emit (events.js:170:7) at Connection.onStanza (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/lib/Connection.js:370:14) at StreamParser. (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/lib/Connection.js:226:14) at emitOne (events.js:78:13) at StreamParser.emit (events.js:170:7)

swissmanu commented 8 years ago

please refer to #15 and ensure you are using the latest version.