can't post index.js
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"
}
}
}
i copy and paste entire code and still can't solve this issue. what might be the problem?
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
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
If OP thinks the problem is fixed, he can close the ticket.