These are chat archives for Automattic/mongoose

27th
Jun 2015
Luke A. Greenleaf
@gishmel
Jun 27 2015 03:40
hey guys so i am getting the following error with a fairly simple application i am writing that is leveraging express.js, bodyParser, and mongoose. Here is my error: https://gist.github.com/gishmel/0ea2a8270c3342d87a72
bodyParser for whatever reason is not getting my data and placing it into body as I believe it should
Erinç Fırtına
@EricMcRay
Jun 27 2015 07:51
@gishmel this is regular mongoose validation error. Try console log your req data and check if it has name
Luke A. Greenleaf
@gishmel
Jun 27 2015 15:39
it does not
that was my previous statement i am using bodyParser.json() but for whatever reason it is not stuffing the data into the req.body
Erinç Fırtına
@EricMcRay
Jun 27 2015 18:54
it is hard to say anything without debug