18 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai
channel awaits if you're curious!I ran to proxy the endpoint to my localhost.
if using serverless overcomplicates things I dont need to use it. Priority is getting this to work.
Hey!
Have you added any binaryTargets in the generator in
schema.prisma
file? Can you share it?
The error you are observing seems similar to this one:
https://github.com/prisma/prisma/issues/8483GitHub
Query Engine not found on Serverless App · Issue #8483 · prisma/p...
Bug description I'm building an application using: Serverless Framework + Yarn Workspaces + Serverless Bundle to package the lambdas; I'm having issues with the query engine binary, tried a...
hey @Nurul (Prisma) aside from my models this is all i have
would definitely appreciate some help here as its been a blocker for several days : /

@Nurul can i please have some help here?
Still nothing :/
try adding binaryTargets to your generator client
binaryTargets = ["native", "rhel-openssl-1.0.x"]
i added that unfortunately it didnt fix the issue.
@cesar sampaio any other ideas? would really appreciate the help :
Hey @Mas0n
Sorry for the delay in getting back to this thread.
Can you let me know your Node version?
If you are deploying to node version 20+ then, can you try adding
rhel-openssl-3.0.x
not (rhel-openssl-1.0.x
) and check if the issue gets fixed?
If you are deploying to arm64 gravitron instances then I would also recommend adding these binary targets.no worries thanks for getting back to me.
our serverless instance is on node 18
@Nurul

Ah, okay.
Just to confirm, these binary targets also didn’t fix the issue, right?
binaryTargets = ["native", "linux-arm64-openssl-1.0.x"]
let me see. are you able to hop in an offce hours or quick call? I have two outstanding issues think we can fix together @Nurul
correct this doesnt work and I am seeing this error:
@Nurul can we jump on a quick call?
It won't be possible for me to jump on a call currently.
I'll create a sample prisma app using lambda functions via serverless framework and share it with you by tomorrow.
I am not sure what's going wrong currently, so creating a sample app will be helpful in debugging what's going on.
Meanwhile, I assume you might have seen these instructions of deploying lambda functions via serverless but sharing it just in case you didn't see it.
Also just found this official example:
https://github.com/prisma/deployment-example-lambda-serverless-framework
Did you try using this as a reference?
GitHub
GitHub - prisma/deployment-example-lambda-serverless-framework
Contribute to prisma/deployment-example-lambda-serverless-framework development by creating an account on GitHub.
I would recommend following the instructions as it is, and first making it work with the prisma version from example (5.1.1) and once it works, you can upgrade it to prisma 6.0.0
I'll also deploy the same and check if everything works as expected
Here's a working example of serverless aws lambda with latest prisma version:
https://github.com/nurul3101/prisma-serverless-lambda
I hope this would be helpful
You can test out the deployed code this way:
This example uses Node version 18 as in your stack

Hey - you're awesome thanks. going to look at this now
@Nurul you around by chance?
im wondering how you deployed it / the config of your serverless app / instance and how you set .env variables
so i can DIFF that
@Nurul can you or someone on the team help to debug. this is a business blocker at this point.
open to creative solutions.
priortity is getting this working