himynameisdave / git-labelmaker

:flags: Manage your GitHub labels from the command line!
MIT License
574 stars 33 forks source link

Throws when try to remove all labels #92

Closed nightire closed 4 years ago

nightire commented 6 years ago

With version 0.9.0, when execute remove all labels, throw the following error:

? Are you sure you want to delete these labels? Yes
/usr/local/lib/node_modules/git-labelmaker/node_modules/git-label/dist/lib/request.js:28
      resolve(res.body);
                  ^

TypeError: Cannot read property 'body' of undefined
    at Request._callback (/usr/local/lib/node_modules/git-labelmaker/node_modules/git-label/dist/lib/request.js:28:19)
    at self.callback (/usr/local/lib/node_modules/git-labelmaker/node_modules/request/request.js:185:22)
    at Request.emit (events.js:182:13)
    at Request.start (/usr/local/lib/node_modules/git-labelmaker/node_modules/request/request.js:753:10)
    at Request.end (/usr/local/lib/node_modules/git-labelmaker/node_modules/request/request.js:1511:10)
    at end (/usr/local/lib/node_modules/git-labelmaker/node_modules/request/request.js:564:14)
    at Immediate.<anonymous> (/usr/local/lib/node_modules/git-labelmaker/node_modules/request/request.js:578:7)
    at runCallback (timers.js:693:18)
    at tryOnImmediate (timers.js:664:5)
    at processImmediate (timers.js:646:5)

ATM, I'm now sure what else info I should provide, if need more, plz let me know.