Query engine binary for current platform "rhel-openssl-1.0.x" could not be found
that’s an error
Hi there!
I am working through the tutorial, and absolutely loving RedwoodJS so far. It is like magic.
When I got to the Netlify deployment step, I discovered that there is an issue with Prisma running on the platform my Netlify app is using (Ubuntu Xenial 16.04
, which is the current default). I have created an issue on Prisma and am cross-posting here in case someone else in the RedwoodJS community runs (or has run) into this problem. If you know a workaround, please let me know!
UPDATE:
I tried switching the build image to Ubuntu Trusty 14.04
and now I don’t get the error above, but I do get a 502 Bad Gateway response from GraphQL. Any thoughts?
UPDATE 2:
Build image selection on Netlify is in beta, so that could be the reason for the 502 error when switching from Ubuntu Xenial 16.04
to Ubuntu Trusty 14.04
.
UPDATE 3 (SOLVED):
I was able to get the app to function normally by adding "rhel-openssl-1.0.x"
to the binaryTargets
listed in api/prisma/schema.prisma
. Below is what my generator client object looks like:
// api/prisma/schema.prisma
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "rhel-openssl-1.0.x"]
}
We may want to update the tutorial docs to include this.