ps73 / feathers-prisma

A Feathers service adapter for Prisma ORM.
MIT License
38 stars 3 forks source link

Prisma Client error 'PrismaClientUnknownRequestError' is not handled and results in an error of undefined #11

Closed NLaza closed 2 years ago

NLaza commented 2 years ago

The error handler is not handling the error PrismaClientUnknownRequestError. This causes the variable feathersError in the error handler to remain undefined, because no default error is set. Because of the undefined error the error cannot be processed correctly by feathers.

The error can be reproduced by, for example, sending a query that contains an integer value that is too large.

Module versions: 0.5.8

NodeJS version: 16.15.1

ps73 commented 2 years ago

Fixed in 0.6.0