❗ If you need urgent assistance then file a case with Snowflake Support.
Otherwise continue here.
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
-
What version of JDBC driver are you using?
4.1.0
-
What operating system and processor architecture are you using?
MacOS, aarch64
-
What version of Java are you using?
21.0.8
-
What did you do?
Running the following snippet using scala-cli reproduces the issue
//> using dep org.tpolecat::doobie-core::1.0.0-RC12
//> using dep net.snowflake:snowflake-jdbc:4.1.0
//> using javaOpt --add-opens=java.base/java.nio=ALL-UNNAMED
import cats.effect.*
import doobie.*
import doobie.syntax.all.*
object TestJDBC extends IOApp.Simple:
val xa = Transactor.fromDriverManager[IO](
"net.snowflake.client.jdbc.SnowflakeDriver",
s"jdbc:snowflake:auto?connectionName=sample&tracing=WARNING&disablePlatformDetection=true",
None
)
val run =
sql"select current_user()"
.query[String]
.unique
.transact(xa)
.map(println)
- What did you expect to see?
Expected output: A successful output with value of current_user()
Relevant lines from the actual output
SEVERE: [requestId=66708a29-4953-49ee-a0a6-2ae0606a32f1] Stop retrying as max retries have been reached for request: POST https://xxxxx-xxxxx.snowflakecomputing.com:80/session/v1/login-request?databaseName=SNOWFLAKE_SAMPLE_DATA&schemaName=TPCH_SF1&warehouse=DEMO&roleName=SYSADMIN&requestId=66708a29-4953-49ee-a0a6-2ae0606a32f1 HTTP/1.1! Max retry count: 7
Apr 20, 2026 10:57:44 AM net.snowflake.client.internal.jdbc.RestRequest executeWithRetries
SEVERE: [requestId=66708a29-4953-49ee-a0a6-2ae0606a32f1] Returning null response. Cause: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message, request: POST https://xxxxx-xxxxx.snowflakecomputing.com:80/session/v1/login-request?databaseName=SNOWFLAKE_SAMPLE_DATA&schemaName=TPCH_SF1&warehouse=ADHOC&roleName=SYSADMIN&requestId=66708a29-4953-49ee-a0a6-2ae0606a32f1 HTTP/1.1
net.snowflake.client.api.exception.SnowflakeSQLException: JDBC driver encountered communication error. Message: Exception encountered for HTTP request: Unsupported or unrecognized SSL message.
at net.snowflake.client.internal.jdbc.RestRequest.executeWithRetries(RestRequest.java:1085)
-
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
Before sharing any information, please be sure to review the log and remove any sensitive
information.
❗ If you need urgent assistance then file a case with Snowflake Support.
Otherwise continue here.
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of JDBC driver are you using?
4.1.0
What operating system and processor architecture are you using?
MacOS, aarch64
What version of Java are you using?
21.0.8
What did you do?
Running the following snippet using scala-cli reproduces the issue
Expected output: A successful output with value of
current_user()Relevant lines from the actual output
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
Before sharing any information, please be sure to review the log and remove any sensitive
information.