Skip to content

Unhandled duplicate key errors during item creation #1155

@ml-evs

Description

@ml-evs

Our item creation route does its own check for item ID clashes ahead of actually trying to create the item, and raises a special error (409: Conflict) if there is a collision. I am seeing several cases where this collision is not found by the first check (instead returning a generic 500), and thus needs to be dealt with at the db insertion directly.

Metadata

Metadata

Assignees

Labels

APIFor issues/PRs pertaining to the APIbugSomething isn't workingserver

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions