Why is there no suitable driver found for jdbc:postgres?

Issue

I see the error java.sql.SQLException: No suitable driver found for jdbc:postgres://....

Resolution

This means you have parsed the DATABASE_URL wrong. You need to change postgres to postgresql in the connection string (JDBC does not support the "postgres" shorthand), or use the JDBC_DATABASE_URL config variable instead.

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