PrismaClientInitializationError Prisma Client could no locate the Query Engine rhel-openssl-3.0.x
Good day Everyone,
I am currently working on a project. Where I utilize Prisma ORM with PrismaAppSync. At the moment I am simply trying to perform some prisma client queries (without AppSync) simply to test.
I continuously get this error while running my AWS Lambda
I am using Amplify Gen2 (Typescript) to create my infrastructure as code. The prisma client is within a Lambda Layer. During the amplify build, I run a postinstall script . Everything from the build gets redirected to the node_modules folder within my AWS Lambda Layer.
AWS Lambda & Layer Runtimes = Node 20
Database Amazon Aurora (MySQL) => connection has been established and was able to query the DB using mysql2
Within schema.prisma
When I download my Lambda layer locally. I do see the rhel-openssl-3.0.x binary files, I am not sure why prisma isn't able to locate it.
Any ideas?
I appreciate the help!
Thanks 🙂
2 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai
is there if you need a quick second opinion.Hey 👋
Can you try by explicilty setting the env variable:
PRISMA_QUERY_ENGINE_LIBRARY
with location to the Query Engine and check if you still get the same issue?