-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Open
Labels
type:featureNew feature or improvement of existing featureNew feature or improvement of existing feature
Description
New Issue Checklist
- Report security issues confidentially.
- Any contribution is under this license.
- Before posting search existing issues.
Issue Description
Parse throws the below error if an object is created where the collection has unique index and there is conflict.
| 'A duplicate value for a field with unique values was provided' |
Steps to reproduce
Actual Outcome
The error is meaningless because its difficult to trace back which class or the index had the conflict
can use regex to abstract the information from the error. I have removed sensitive information from the error.
E11000 duplicate key error collection: db.collectionName index: index_name_1 dup key: { field: "value", name: "voluptatem" }
Expected Outcome
We should add proper collectionName and indexName along with the error?
Environment
Server
- Parse Server version:
7 - Operating system:
na - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
na
Database
- System (MongoDB or Postgres):
Mongo - Database version:
na - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
Local
Client
- SDK (iOS, Android, JavaScript, PHP, Unity, etc):
js - SDK version:
6
Logs
Metadata
Metadata
Assignees
Labels
type:featureNew feature or improvement of existing featureNew feature or improvement of existing feature