am i doing something wrong here? i randomly get t...
# prisma-client
m
am i doing something wrong here? i randomly get this error in my tests
Copy code
[test:*backend] Invalid `prisma.$queryRaw()` invocation:
[test:*backend] 
[test:*backend] 
[test:*backend]   Raw query failed. Code: `22P03`. Message: `db error: ERROR: incorrect binary data format in bind parameter 1`
[test:*backend]  ❯ RequestHandler.handleRequestError node_modules/@prisma/client/runtime/index.js:49670:13
[test:*backend]  ❯ RequestHandler.request node_modules/@prisma/client/runtime/index.js:49652:12
[test:*backend]  ❯ Proxy._request node_modules/@prisma/client/runtime/index.js:50572:18
[test:*backend]  ❯ EmailCandidateSentRepository.getUnsentEmails packages/service/src/repo/repository/emailCandidateSent.ts:89:17
[test:*backend]      87|       ${userId ? sql` AND "userId"=${userId}::uuid` : Prisma.empty}
[test:*backend]      88|     `
[test:*backend]      89|     const rows = await prisma.c.$queryRaw<{ id: string }[]>`
[test:*backend]        |                 ^
[test:*backend]      90|       SELECT id FROM "EmailCandidateSent"
[test:*backend]      91|         WHERE ${whereFilters}