Samrith Shankar
08/19/2022, 9:55 AM/opt/prisma-binary
I have set the above value as PRISMA_QUERY_ENGINE_BINARY
. When I try to run a create
request, I get the following error:
Invalid `this.prisma.user.create()` invocation in
/var/task/src/lambda.js:482655:43
482652 throw new Error("Not found. Proceeding to create!");
482653 }
482654 } catch (_a4) {
→ 482655 user = await this.prisma.user.create(
spawn /opt/prisma-binary EACCES
at RequestHandler.request (/var/task/src/lambda.js:123709:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async PrismaService._request (/var/task/src/lambda.js:124590:22)
at async AuthService.verifyOTP (/var/task/src/lambda.js:482655:20) {
code: 'EACCES',
clientVersion: '3.15.2',
meta: undefined
}
This works locally, but gives the above error on lambda. Any idea why?Gustavo
08/19/2022, 10:06 AMGeebrox
08/19/2022, 10:22 AMNurul
08/19/2022, 11:06 AMSamrith Shankar
08/19/2022, 11:42 AMNurul
08/19/2022, 11:56 AMSamrith Shankar
08/19/2022, 12:19 PMNurul
08/19/2022, 12:36 PMSamrith Shankar
08/19/2022, 12:49 PMEACCESS
on /opt/Prisma-binary
folder which is where my lambda layer isNurul
08/19/2022, 12:52 PMSamrith Shankar
08/19/2022, 12:59 PMSamrith Shankar
08/19/2022, 12:59 PMNurul
08/19/2022, 5:14 PMSamrith Shankar
08/19/2022, 5:24 PMRichard Ward
08/22/2022, 8:00 AMPRISMA_QUERY_ENGINE_BINARY
, etc)Richard Ward
08/22/2022, 8:01 AMSamrith Shankar
08/22/2022, 10:58 AM