hi am new to nodejs by using compound as framework, i have been getting error when request through on https. i tried simple code is
action(function getteams(req){
Mymodel.find({"season": body.year}, function(err, team){
console.log("Season "+ body.year)
if(!err) return send(team);
return console.log(err);
})
})
when i hardcode body.year as "2001" i get the answer, but if send request through http it throughs error called "socket hang up". how to come across this.