You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instances where mongoose-unique-validator npm package causes incorrect error thrown involving _id must be unique error. It is an ongoing issue in mongoose-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:
To remove the mongoose-unique-validator plugin entirely and check the error code thrown by mongoose manually.
or
To wait for a bug fix in 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)