Hi guys! I have a problem. When I run `prisma intr...
# orm-help
m
Hi guys! I have a problem. When I run
prisma introspect
works as expected, generating my models and all its relations. Then, I run
prisma generate
and works well too. But when I try to debug my app it throws an exception telling me that my database is not running..
Copy code
Can't reach database server at `localhost`:`5432`

Please make sure your database server is running at `localhost`:`5432`.
    at LineStream.<anonymous> (d:\Prisma2-test\node_modules\@prisma\client\runtime\index.js:27666:31)
    at LineStream.emit (events.js:200:13)
    at addChunk (_stream_readable.js:294:12)
    at readableAddChunk (_stream_readable.js:275:11)
    at LineStream.Readable.push (_stream_readable.js:210:10)
    at LineStream.Transform.push (_stream_transform.js:150:32)
    at LineStream._pushBuffer (d:\Prisma2-test\node_modules\@prisma\client\runtime\index.js:3829:19)
    at LineStream._transform (d:\Prisma2-test\node_modules\@prisma\client\runtime\index.js:3823:10)
    at LineStream.Transform._read (_stream_transform.js:189:10)
    at LineStream.Transform._write (_stream_transform.js:177:12) {clientVersion: '2.25.0', errorCode: undefined, stack: 'Error: Can't reach database server at `localh…ransform._write (_stream_transform.js:177:12)', message: 'Can't reach database server at `localhost`:`…ase server is running at `localhost`:`5432`.'
Someone knows what could be happening?
r
@Martí Crespí 👋 Is your project running in Docker?
m
Not yet, I'm still running my app locally.. I know from prisma1 database url was like
host.internal
or something like this, but it's introspecting well to
localhost:5432
only it fails when I try to run the app
r
Could you share your repo so that I can check?
m
I will try to create a simple version to share and let you know! Thanks Ryan!
👍 1