Why am I seeing `SSL error: tlsv1 alert protocol version (PG::Error)` when connecting to my Heroku Postgres database?


I'm suddenly seeing database connection errors such as could not retrieve server_version: tlsv1 alert protocol version or SSL error: tlsv1 alert protocol version (PG::Error).


Users of Heroku Postgres may start seeing errors when connecting to the database if their client is using a deprecated TLS version. As part of ongoing maintenances performed on Heroku Data Services, existing services are being migrated to new and updated servers that do not accept connections using TLS v1.1 or lower.

Connections to Heroku Postgres databases require using TLS v1.2 or v1.3.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support