Nazar Pohonchuk
05/15/2023, 6:47 PMashmelev
05/15/2023, 7:36 PMIllegalArgumentException: URL ?sslMode=REQUIRE does not start with the r2dbc scheme
indicates you probably need to change the URL string in the database connection configNazar Pohonchuk
05/15/2023, 7:44 PMweb: java -Dserver.port=$PORT -Dspring.r2dbc.url=`echo $JDBC_DATABASE_URL | sed -e "s/jdbc:/r2dbc:/" | sed -e "s/?.*//"`?sslMode=REQUIRE -Dspring.r2dbc.username=$JDBC_DATABASE_USERNAME -Dspring.r2dbc.password=$JDBC_DATABASE_PASSWORD -jar build/libs/kvision-realworld-example-app-fullstack-1.0.0-SNAPSHOT.jar
So what URL should I paste? I think It is a really dumb question, but I am a newbie. So could you please explain how would I get that URL?ashmelev
05/15/2023, 8:01 PMProfile
you will see sslMode=REQUIRE
... try to replace that with either sslMode=false
or sslMode=disable
If the issue is the SSL connectivity (and associated keystore, etc) the disabling SSL may helpRobert Jaros
05/15/2023, 8:07 PMjdbc:
url and this procfile will convert it to start with r2dbc:
prefix.Nazar Pohonchuk
05/16/2023, 9:39 AMheroku pg:credentials:url DATABASE
and got "webk-fullstack has no database"
So I ran this command heroku addons:create heroku-postgresql
and everything works now.
Thank you very much for your help!