Skip to content

Known Issue: Instances where mongoose-unique-validator package causes incorrect error thrown involving _id must be unique error #272

Open
@JonathanLeeWH

Description

@JonathanLeeWH

Known Issue:

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:

Related Issue:

mongoose-unique-validator GitHub

GitHub Issue 1
GitHub Issue 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions