Martí Crespí
06/28/2021, 6:50 AMprisma 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..
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?Ryan
06/28/2021, 7:01 AMMartí Crespí
06/28/2021, 7:04 AMhost.internal
or something like this, but it's introspecting well to localhost:5432
only it fails when I try to run the appRyan
06/28/2021, 7:06 AMMartí Crespí
06/28/2021, 7:07 AM