Skip to content

Fails to connect using "prisma+postgres:" connection strings. #1409

Closed
prisma/orm
#28771

Description

@igalklebanov

Hey 👋

I am facing an issue with prisma studio , it says introspection failed

write CONNECT_TIMEOUT accelerate.prisma-data.net:5432

Can you help me out here ?

Originally posted by @mohakchakraborty2004 in #1408

prisma+postgres: connection strings are wrongly treated like regular postgres: connection strings.

Activity

  1. added theissue type on Nov 27, 2025
  2. mohakchakraborty2004 commented on Nov 27, 2025

    @mohakchakraborty2004
  3. mohakchakraborty2004 commented on Nov 27, 2025

    @mohakchakraborty2004

    Even on passing the prisma.config.ts file and the accelerate db url , directly from the terminal , it is still throwing introspection operation failed error. It is not able to detect or connect to the db , even ater explicitly passing it the URL through terminal itself with the --url tag

  4. igalklebanov commented on Nov 27, 2025

    @igalklebanov
    Author

    Are you trying to connect to a Prisma Postgres instance?
    Have you tried using the "direct TCP" connection string instead?

  5. mohakchakraborty2004 commented on Nov 27, 2025

    @mohakchakraborty2004

    I am not trying to connect to an instance , the command npx prisma studio is throwing this introspection error when the prisma db uses accelerate. If the db url is a normal postgress url it works just fine.

    How to do the "direct TCP" string method ?

    But anyway its still an issue right , that I am not able to access my accelerate prisma url using this command , but can do a normal postgres one.

  6. mohakchakraborty2004 commented on Nov 27, 2025

    @mohakchakraborty2004

    Oh okay , I just read the accelerate docs , in prisma 7 it does not allows to introspect an accelerate database. My bad @igalklebanov

    I will test again and let you know , and you can mark this issue off

  7. mohakchakraborty2004 commented on Nov 27, 2025

    @mohakchakraborty2004

    yes , I was right , accelerate URL cant be introspected in prisma studio in prisma 7. Problem is solved. Can close this issue.

  8. changed the title [-]Potential issue with Accelerate.[/-] [+]Fails to connect using "prisma+postgres:" connection strings.[/+] on Nov 30, 2025
  9. Tzadiko commented on Nov 30, 2025

    @Tzadiko

    Hey, I just generated a new connection string, one that is not accelerate. It still fails for me the format is:

    postgres://alphanumeric string:secretkey@db.prisma.io:port/postgres?sslmode=require_

    Please help. Can you please provide documentation as to what the "Use the Direct TCP string connection method" is?

    I went to console.prisma.io -> Select Database -> Dashboard -> Connect to Database -> Generate Connection and took the string that it provided in the format specified above.

    Thanks

  10. Tzadiko commented on Dec 2, 2025

    @Tzadiko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions