prisma: Missing credentials in Postgres URL: Got invalid RPC response without .result property
Schema
datasource db {
provider = "postgresql"
url = "postgresql://localhost:5432/bother?schema=public"
}
generator photonjs {
provider = "photonjs"
}
model Post {
id String @id @default(cuid())
body String
comments Comment[]
location Float[]
rating Int
ratings Rating[]
user User
created DateTime @default(now())
}
model Rating {
id String @id @default(cuid())
direction Int
post Post
user User
created DateTime @default(now())
updated DateTime @default(now())
}
model Comment {
id String @id @default(cuid())
body String
post Post
user User
created DateTime @default(now())
}
model User {
id String @id @default(cuid())
notifications Boolean
platform String
posts Post[]
push_token String
created DateTime @default(now())
updated DateTime @default(now())
}
Versions
macOS 10.14.5 (18F132)
Prisma prisma2@2.0.0-preview-7, binary version: 33e5fc84b6bd61602f8d634beb558230ca3e3054
PostgreSQL psql (PostgreSQL) 11.4
@pantharshit00 I’m not using embeds or dashes in my schema name. VSCode Prisma extension clears my schema, too. Any help?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 26 (11 by maintainers)
Thanks, I was able to reproduce this now 🎉
Reproduction steps:
prisma2 init
flow and the credentials obtained from above(remember that SSL is required)Version: prisma2@2.0.0-preview-7, binary version: 33e5fc84b6bd61602f8d634beb558230ca3e3054
Rust backtrace:
This is not reproducible anymore with
I tried these situations (wrong user, missing port, local or remote pg, missing env, wrong env).
I am closing this one, if you still run into this issue, please create a new GH issue possibly with a minimal reproduction and tag me there 🙌
I’m seeing the same error locally, with mysql.
@pantharshit00 Ok this is what I’m getting on Heroku
Yes, I just did. Working now. I do remember in v1, it used to show a clearer error if username wasn’t specified.
@alizahid
Try specifying a user then.