Errors coming using PrismaClientExceptionFilter at global level.
jd4u opened this issue · 2 comments
jd4u commented
Errors coming using PrismaClientExceptionFilter at global level. Disable the use and all works well.
Error: TypeError: Right-hand side of 'instanceof' is not an object at is InstanceOf (node_modules/@nestjs/core/exceptions/exceptions-handler.js:28:54)
Following code is activated in request that causes the issue.
throw new BadRequestException({
description: 'Insufficient Credential Details',
status: HttpStatus.BAD_REQUEST,
});
Before upgrade to prisma 4.14.0, this worked well..!! nestjs-prisma is 0.20.0
marcjulian commented
Hi @jd4u I cannot reproduce this error. I have updated the Basic Example to Prisma 4.14.0 and it catches the error when calling GET localhost:3000/test
marcjulian commented
Closing for now. Please provide a reproduction repository.