wayneashleyberry / wunderline

✅️ Command-line client for Wunderlist, the easiest way to get stuff done.
https://git.io/vM45l
MIT License
310 stars 29 forks source link

Getting error while authenticating wunderline. #93

Closed deepak365 closed 7 years ago

deepak365 commented 7 years ago

Steps to reproduce :

  1. wunderline auth
  2. Add Client ID
  3. Add Access token

Error :

/usr/local/lib/node_modules/wunderline/wunderline-auth.js:50
    console.log('Thanks ' + body.name.split(' ')[0] + ', Wunderline has been authenticated.')
                                     ^

TypeError: Cannot read property 'split' of undefined
    at Request._callback (/usr/local/lib/node_modules/wunderline/wunderline-auth.js:50:38)
    at Request.self.callback (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:187:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1044:10)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:965:12)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)

Node version : node -v v4.4.5

Thor77 commented 7 years ago

Are you running the latest version of wunderline? (There were some updates in error-handling recently)

Thor77 commented 7 years ago

Closing this due to missing feedback. Feel free to reopen if you can reproduce this on a recent version @deepak365.