I am using a query package for nodejs
I use this code here
var formData = ({first_name:firstname,last_name:lastname,user_name:username, email:email,password:password}); request.post({url:'http://localhost:8081/register', JSON: formData}, function(err, connection, body) {
and
exports.Register = function(req, res) { res.header("Access-Control-Allow-Origin", "*"); console.log("Request data " +JSON.stringify(req));
here I get this TypeError error : converting a circular structure to JSON
Can someone tell me what the problem is?
thanks
source share