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

P1011: Error opening a TLS connection: bad protocol version #913

Open
shubham184 opened this issue Feb 15, 2024 · 0 comments
Open

P1011: Error opening a TLS connection: bad protocol version #913

shubham184 opened this issue Feb 15, 2024 · 0 comments

Comments

@shubham184
Copy link

Bug description

I am encountering a TLS connection issue when attempting to connect to my PostgreSQL database using Prisma Migrate Dev. The specific error message is P1011: Error opening a TLS connection: bad protocol version. However, using psql for the same database, host, and user credentials does not result in any error, suggesting that the issue is specific to how Prisma handles TLS connections.

How to reproduce

  1. Configure Prisma with a PostgreSQL database that requires a TLS connection.
  2. Ensure the environment is set up with Python 3.10.10 and OpenSSL 3.1.0.
  3. Run prisma migrate dev to apply migrations.
  4. Encounter the TLS protocol version error.

Expected behavior

I expect Prisma to successfully establish a TLS connection using the same protocol version as supported by psql and not encounter any protocol version errors.

Prisma information

generator client {
  provider  = "prisma-client-py"
  interface = "asyncio"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_MIGRATION_URL")
}

Environment & setup

  • OS: Mac OS, Windows
  • Database: PostgreSQL
  • Python version: 3.10
  • Prisma version: - 0.12.0

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

No branches or pull requests

1 participant