Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
https promise
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
});
})
0