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

Open
KavenWork opened this Issue Jan 11, 2017 · 2 comments

Projects

None yet

3 participants

@KavenWork
KavenWork commented Jan 11, 2017 edited

findById

mongoose@4.3.6 is right

4.7.6 has this problem

@dongyingtao

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.

@varunjayaraman
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment