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

CastError: Cast to ObjectId failed for value "56d79e4a52637adc45e874b4" at path "_id" for model "User" #4887

Closed
nguowk opened this issue Jan 11, 2017 · 3 comments
Labels
needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity

Comments

@nguowk
Copy link

nguowk commented Jan 11, 2017

findById

mongoose@4.3.6 is right

4.7.6 has this problem

@dongyingtao
Copy link

Same problem. I was using 4.6.8. It worked fine. Today, when I deployed a new server with npm install. It installs 4.7.6 with mongodb@2.2.19 which has the regression.
This is pretty big regression. Everyone seems to be complaining.

@sobafuchs
Copy link
Contributor

Guessing this is a duplicate of #4867 but can you please post a code snippet or follow the issue template please so we can at least see what's causing the bug?

@sobafuchs sobafuchs added the needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity label Jan 11, 2017
@sobafuchs
Copy link
Contributor

@KavenWork any update on this? Otherwise I'm going to close this issue as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity
Projects
None yet
Development

No branches or pull requests

4 participants