I keep getting this error when trying to use the promise with https.get, any ideas?
org.mozilla.javascript.EcmaError: TypeError: Cannot find function promise in object function (options, headers) {...}.
https.get.promise(url: baseUrl)
.then(function(response){
log.debug({
title: 'Response',
details: response
});
})
.catch(function onRejected(reason) {
log.debug({
title: 'Invalid Get Request: ',
details: reason
});
})