Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug: GCP Functions - try Node.js v18 and 3.0.x-tls #4433

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

Jolg42
Copy link
Member

@Jolg42 Jolg42 commented Jan 5, 2024

No description provided.

@Jolg42
Copy link
Member Author

Jolg42 commented Jan 5, 2024

The test actually errors because the expectation will need to be updated. But I consider it a successful deployment.

We can see in the logs that the binaryTarget switched, liked expected from libquery_engine-debian-openssl-1.0.x.so.node to libquery_engine-debian-openssl-3.0.x.so.node
https://github.com/prisma/ecosystem-tests/actions/runs/7419853544/job/20190158501?pr=4433#step:8:4154

See function
https://us-central1-prisma-e2e-tests-265911.cloudfunctions.net/e2e-test-2024-01-05-090416

@Jolg42 Jolg42 changed the title upgrade to Node.js v18 debug: GCP Functions - try Node.js v18 and 3.0.x-tls Jan 5, 2024
@Jolg42
Copy link
Member Author

Jolg42 commented Jan 5, 2024

I pushed a copy of the debian-bullseye-amd64-openssl-1.1.x-tls test and modified it as debian-latest-amd64-openssl-3.0.x-tls
Because it’s testing Prisma Client using GCP Postgres with the SSL certificate.

And I can reproduce what was mentioned in prisma/prisma#22520
Logs

PrismaClientInitializationError: 
Invalid `client.user.findMany()` invocation in
/usr/src/app/server.js:12:34

   9 const client = new PrismaClient()
  10 
  11 app.get('/', async (req, res) => {
→ 12   const data = await client.user.findMany(
Error opening a TLS connection: error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:373:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()
    at si.handleRequestError (/usr/src/app/node_modules/.pnpm/@prisma+client@5.8.0-dev.50_prisma@5.8.0-dev.50/node_modules/@prisma/client/runtime/library.js:125:7117)
    at si.handleAndLogRequestError (/usr/src/app/node_modules/.pnpm/@prisma+client@5.8.0-dev.50_prisma@5.8.0-dev.50/node_modules/@prisma/client/runtime/library.js:125:6151)
    at si.request (/usr/src/app/node_modules/.pnpm/@prisma+client@5.8.0-dev.50_prisma@5.8.0-dev.50/node_modules/@prisma/client/runtime/library.js:125:5859)
    at async l (/usr/src/app/node_modules/.pnpm/@prisma+client@5.8.0-dev.50_prisma@5.8.0-dev.50/node_modules/@prisma/client/runtime/library.js:130:9805)
    at async /usr/src/app/server.js:12:16 {
  clientVersion: '5.8.0-dev.50',
  errorCode: undefined
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant