meanapp icon indicating copy to clipboard operation
meanapp copied to clipboard

can't post index.js

Open pika298 opened this issue 9 years ago • 3 comments

this is my error: { "message": "movie validation failed", "name": "ValidationError", "errors": { "url": { "message": "Path url is required.", "name": "ValidatorError", "properties": { "type": "required", "message": "Path {PATH} is required.", "path": "url" }, "kind": "required", "path": "url" }, "title": { "message": "Path title is required.", "name": "ValidatorError", "properties": { "type": "required", "message": "Path {PATH} is required.", "path": "title" }, "kind": "required", "path": "title" } } }

pika298 avatar Oct 12 '16 15:10 pika298

i copy and paste entire code and still can't solve this issue. what might be the problem?

pika298 avatar Oct 12 '16 15:10 pika298

I am getting the same issue. Using downloaded zip file for running the server. I also get this warning in server console : (node:19268) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html

rajataggarwal91 avatar Jan 03 '17 03:01 rajataggarwal91

I think I understood what I was doing wrong. In postman don't just POST the contents. You need to enable x-www-form-urlencoded radio button screen shot 2017-01-02 at 9 59 01 pm If OP thinks the problem is fixed, he can close the ticket.

rajataggarwal91 avatar Jan 03 '17 05:01 rajataggarwal91