Perry Raskin
11/02/2021, 12:17 AMCould not parse URL of the datasourceAlberto Perdomo
Perry Raskin
11/02/2021, 1:50 PMPerry Raskin
11/02/2021, 1:50 PMAlberto Perdomo
Alberto Perdomo
Could not parse URL of the datasourceIs your datasource named db ? https://www.prisma.io/docs/concepts/components/prisma-data-platform#step-4-make-sure-that-the-datasource-url-is-read-from-environment
Perry Raskin
11/02/2021, 5:31 PMPerry Raskin
11/02/2021, 5:32 PMdatasource db {
provider = "postgresql"
url = env("DATABASE_URL")
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
}
this is my datasource in my schema fileAlberto Perdomo
Perry Raskin
11/02/2021, 5:33 PMdb, so any idea what might be wrong? i’m so confused hahaPerry Raskin
11/02/2021, 5:33 PMDATABASE_URL is the proxy URLAlberto Perdomo
Perry Raskin
11/02/2021, 5:34 PMJakub
11/02/2021, 6:57 PMURL constructor and see if it throws: https://github.com/prisma/prisma/blob/main/packages/engine-core/src/data-proxy/DataProxyEngine.ts#L187-L199; my hunch is that the env var is not set correctly in Heroku. In your app, can you try to log process.env.DATABASE_URL?Perry Raskin
11/02/2021, 6:58 PMJakub
11/02/2021, 6:59 PMIn your app, can you try to log?process.env.DATABASE_URL
Perry Raskin
11/02/2021, 6:59 PMnull, what’s the best way to fix? it’s been working until i starting using proxyPerry Raskin
11/02/2021, 6:59 PMnullPerry Raskin
11/02/2021, 7:05 PMPerry Raskin
11/02/2021, 7:05 PMPerry Raskin
11/02/2021, 7:06 PMPerry Raskin
11/02/2021, 7:07 PMJakub
11/02/2021, 7:07 PMPerry Raskin
11/02/2021, 7:09 PMJakub
11/02/2021, 7:10 PMPerry Raskin
11/02/2021, 7:10 PMPerry Raskin
11/02/2021, 7:13 PMAlberto Perdomo