Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't post index.js #7

Open
pika298 opened this issue Oct 12, 2016 · 3 comments
Open

can't post index.js #7

pika298 opened this issue Oct 12, 2016 · 3 comments

Comments

@pika298
Copy link

pika298 commented Oct 12, 2016

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
Copy link
Author

pika298 commented Oct 12, 2016

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

@rajataggarwal91
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants