Im having an issue where I cant seem to send a request throw request.js to a site. I'm not sure how I'm supposed to catch the error either, can I have help please?
&format=json&from=EDT' + '&to=' + stuff+ '&time=' + stuff, function (error, response, body) {
console.log('body:', body);
var jsondata = JSON.parse(body);
var whatiwaslookingfor= new Date(jsondata.toTimestamp*1000)
console.log(stuff)
var hours = converteddate.getHours();
var minutes = "0" + converteddate.getMinutes();
var finishedproduct = hours + ':' + minutes.substr(-2);
messagechannel.send(finishedproduct)
})}
module.exports.help = {
name: "commandName"
}```


















