Open duncte123 opened 1 year ago
I get the same thing.
java.lang.RuntimeException: com.impossibl.postgres.jdbc.PGSQLSimpleException: Connection Error: SCRAM channel binding check failed
Caused by: com.impossibl.postgres.jdbc.PGSQLSimpleException: Connection Error: SCRAM channel binding check failed
at com.impossibl.postgres.jdbc.ErrorUtils.makeSQLException(ErrorUtils.java:197)
at com.impossibl.postgres.jdbc.ErrorUtils.makeSQLException(ErrorUtils.java:134)
at com.impossibl.postgres.jdbc.ConnectionUtil.createConnection(ConnectionUtil.java:326)
at com.impossibl.postgres.jdbc.AbstractDataSource.createConnection(AbstractDataSource.java:125)
at com.impossibl.postgres.jdbc.PGDataSource.getConnection(PGDataSource.java:71)
at com.impossibl.postgres.jdbc.PGDataSource.getConnection(PGDataSource.java:63)
... 30 more
Can confirm that this is still happening. Disabling SSL isn't an option here since our PostgreSQL server requires it.
Can confirm that this is still happening. Disabling SSL isn't an option here since our PostgreSQL server requires it.
I ended up switching to https://mvnrepository.com/artifact/org.postgresql/postgresql. It solved all my issues with this lib
Workaround
For the people looking for a workaround: use this lib instead https://mvnrepository.com/artifact/org.postgresql/postgresql
Original issue
When setting
ssl.mode
torequire
on a hosted server (psql version 15.1) I get the following exception, it does work if I disable SSL in my settings somehowjdbc uri:
Exception