Can not create property

0

I have an error and I do not know what it is, can anyone help me? the code:

const id = parseInt(req.body.id);
  connection.query('INSERT INTO carroceria (descricao) VALUES(?)',[descricao], function(err, result){
    if(err)
      throw err;
    else
        res.render('especie',id);
    });

and the error:

  

Can not create property '_locals' on number '143'

The 143 number is what I get from my html.

    
asked by anonymous 28.03.2018 / 16:04

0 answers