Skip to content

Duplicate validation is failing and returning a 500 error instead of 400 #8664

@kieron

Description

@kieron

Bug report

Duplicate validation is failing and returning a 500 error instead of 400

Steps to reproduce the behaviour

  1. Submit duplicate data

Expected behaviour

Should return 400 error

System

  • Node.js version: v12.17.0
  • NPM version: 6.14.4
  • Strapi version: v3.1.7
  • Database: MySQL + bookshelf
  • Operating system: Centos

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: core:databaseSource is core/database packagestatus: confirmedConfirmed by a Strapi Team member or multiple community members

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions