Missing credentials in Postgres URL: Got invalid RPC response without .result property
See original GitHub issueSchema
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?
Issue Analytics
- State:
- Created 4 years ago
- Comments:26 (11 by maintainers)
Top Results From Across the Web
52 - Stack Overflow
I have set up credentials by using git config user.name "your username" and git config user.password "your password", and could see these by ......
Read more >Prisma 2.0.0-preview-10 Release - GitClear
... Examples and Docs should not use both @id and @unique · Missing credentials in Postgres URL: Got invalid RPC response without .result...
Read more >Services backed by PostgreSQL fail or stop responding
Run the following query to know where the connections are going: SELECT datname, numbackends FROM pg_stat_database;. If most connections are idle and the ......
Read more >Database Engine events and errors - SQL Server
113, 15, No, Missing end comment mark '*/'. 114, 15, No, Browse mode is invalid for a statement that assigns values to a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 🙌