Play/Slick: SQLTimeoutException: Timeout after 1001ms of waiting for a connection Play/Slick: SQLTimeoutException: Timeout after 1001ms of waiting for a connection postgresql postgresql

Play/Slick: SQLTimeoutException: Timeout after 1001ms of waiting for a connection


The problem was in configuration, this is a working example:

slick.dbs.default.driver = "slick.driver.PostgresDriver$"slick.dbs.default.db.driver = "org.postgresql.Driver"slick.dbs.default.db.url = "jdbc:postgresql://localhost:5432/mydb"slick.dbs.default.db.user = "postgres"slick.dbs.default.db.password = "postgres"


I came across this issue with Play 2.5.9 and Slick 3.11. I resolved it by adding slick.dbs.default.db.properties.url:

slick.dbs.default.db.url="jdbc:postgresql://<hostname>:<port>/<db>"slick.dbs.default.db.properties.url="jdbc:postgresql://<hostname>:<port>/<db>"


Note that if you entered incorrect login details it will still come back as a timeout not as an Auth error or similar.