This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
Invalid connection string not handled gracefully #528
Labels
bug/2-confirmed
We have confirmed that this is a bug.
kind/bug
A reported bug.
tech/typescript
Issue for tech TypeScript.
topic: cli
Milestone
If I run migrate with a wrong password in my connection string env I get a proper error.
In my case I had a typo (the tick) in the port number, which led to an unhandled error:
DATABASE_URL="postgresql://postgres:prisma@localhost:543`/mydb?schema=public"
This case should also lead to a proper error.
I also tested this with the connection string directly in the schema and the error is the same. Introspection handles the error gracefully:
Versions:
@prisma/cli : 2.3.0
Current platform : darwin
Query Engine : query-engine e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e (at node_modules/@prisma/cli/query-engine-darwin)
Migration Engine : migration-engine-cli e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e (at node_modules/@prisma/cli/migration-engine-darwin)
Introspection Engine : introspection-core e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e (at node_modules/@prisma/cli/introspection-engine-darwin)
Format Binary : prisma-fmt e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e (at node_modules/@prisma/cli/prisma-fmt-darwin)
The text was updated successfully, but these errors were encountered: