Known Issue: Instances where mongoose-unique-validator
package causes incorrect error thrown involving _id
must be unique error
#272
Labels
bug
Something isn't working
Known Issue:
Instances where
mongoose-unique-validator
npm package causes incorrect error thrown involving_id
must be unique error. It is an ongoing issue inmongoose-unique-validator
npm package.Affects
It affects frontend integration where bad requests status code 400 would be shown for adding or editing software as it will shown software as not added successfully.
Potential Workaround:
mongoose-unique-validator
plugin entirely and check the error code thrown by mongoose manually.or
mongoose-unique-validator
plugin.The stopgap measure:
Whenever the demo software repository website is to be demo, best to use a new mongodb database. (Not feasible in long run but a temporary measure for showing functionality in demonstration)mongoose-unique-validator
to last known working version (PR Temporary Solution to Issue #272:mongoose-unique-validator
downgraded to2.0.3
#301 and Amend firebase private key decode from base64 #302) [A temporary measure and not a long term solution due to long term security concern]Related Issue:
mongoose-unique-validator
GitHubGitHub Issue 1
GitHub Issue 2
The text was updated successfully, but these errors were encountered: