Quantcast
Channel: "VersionError: No matching document found" error on Node.js/Mongoose - Stack Overflow
Browsing all 6 articles
Browse latest View live

Answer by Alex G. for "VersionError: No matching document found" error on...

I had the same error when i tried to update a user's reference IDs to an email. The fix was really simple with async / await! Here the code snippet, hope it helps. email .save() .then(() =>...

View Article



Answer by gianlucaparadise for "VersionError: No matching document found"...

I had this issue because I was removing an item from an array of a Document using splice function.I fixed replacing splice function with pull function from mongoose.

View Article

Answer by Adam Reis for "VersionError: No matching document found" error on...

This error can also occur when your process maintains an outdated version of a document in memory and then tries to save it at some point after it has been updated by another process.

View Article

Answer by toblerpwn for "VersionError: No matching document found" error on...

Per request, here is an outline of our problem, and how we resolved it:In our system we created a custom Document locking routine (using redis-lock), wherein the following happened in this precise...

View Article

Answer by matthijs for "VersionError: No matching document found" error on...

It propably points to saving the same document concurrently as robertklep points out.We had a similar issue running concurrent saves on the same document using async.parallel.

View Article


"VersionError: No matching document found" error on Node.js/Mongoose

I'm relatively new to Node.js and Mongo/Mongoose, and I'm having a very difficult time troubleshooting a specific Mongoose error:VersionError: No matching document found.(Entire error trace/stack at...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images