skip to Main Content

Mongodb – Cast to ObjectId failed for value "6283201d60c794631cd1ba33n" (type string) at path "_id" for model "Post"

I'm working on a social media project and getting this getting when I'm sending like/Unlike post request CastError: Cast to ObjectId failed for value "6283n" (type string) at path "_id" for model "Post" at model.Query.exec (E:social-media-app-mernnode_modulesmongooselibquery.js:4639:21) at model.Query.Query.then (E:social-media-app-mernnode_modulesmongooselibquery.js:4738:15) at…

VIEW QUESTION
Back To Top
Search