Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API error not processed P2002 #54

Open
TangoCh4rlie opened this issue Feb 16, 2024 · 0 comments
Open

API error not processed P2002 #54

TangoCh4rlie opened this issue Feb 16, 2024 · 0 comments
Assignees
Labels
autogenerate Généré par l'api bug Something isn't working

Comments

@TangoCh4rlie
Copy link
Contributor

Une erreur non traité s'est produite
Le message d'erreur est le suivant :
Code: P2002
Message:
Invalid prisma.image.create() invocation in
/usr/src/app/dist/models/imageModels.js:79:36

76 const uuidList = [];
77 yield Promise.all(image.map((img) => __awaiter(this, void 0, void 0, function* () {
78 const ref = (0, crypto_1.randomUUID)();
→ 79 yield prisma.image.create(
Unique constraint failed on the fields: (img)
Info: Image, img

@TangoCh4rlie TangoCh4rlie added autogenerate Généré par l'api bug Something isn't working labels Feb 16, 2024
@TangoCh4rlie TangoCh4rlie self-assigned this Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autogenerate Généré par l'api bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant