Duplicate UID doesn't show the respective error in API call #9168
Labels
issue: bug
Issue reporting a bug
severity: medium
If it breaks the basic use of the product but can be worked around
source: core:database
Source is core/database package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Projects
Bug report
Describe the bug
I have created a Collection in which I have a field Slug of type UID.
At present, if I try to add data having the same UID in the Collection using API, it throws Internal Server Error but doesn’t even mention the error about UID.
Whereas when the same insertion is tried from the Admin, I get to see the Unavailable result.
Steps to reproduce the behavior
Expected behavior
Expected to get the API response as it's sent in the Admin:
Code snippets
System
Additional context
I tried reproducing the same in Local and I can see the same error in my Local Environment
Checked the PostgreSQL logs and can see the same error:
The text was updated successfully, but these errors were encountered: