N
Neon2y ago
like-gold

Error when running node app.js command

I'm trying to set up connection between my app and database/ SQL server on Neon and was following steps listed on https://neon.tech/docs/guides/node. I don't know why I'm getting this error PS C:\Users\filip_btijweq\bootcamp\Fluolingo-backend> cd src PS C:\Users\filip_btijweq\bootcamp\Fluolingo-backend\src> node app.js node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^ AggregateError at internalConnectMultiple (node:net:1114:18) at afterConnectMultiple (node:net:1667:5) at cachedError (C:\Users\filip_btijweq\bootcamp\Fluolingo-backend\node_modules\postgres\cjs\src\query.js:170:23) at new Query (C:\Users\filip_btijweq\bootcamp\Fluolingo-backend\node_modules\postgres\cjs\src\query.js:36:24) at sql (C:\Users\filip_btijweq\bootcamp\Fluolingo-backend\node_modules\postgres\cjs\src\index.js:112:11) at getPgVersion (C:\Users\filip_btijweq\bootcamp\Fluolingo-backend\src\app.js:20:27) { code: 'ECONNREFUSED', [errors]: [ Error: connect ECONNREFUSED ::1:5432 at createConnectionError (node:net:1634:14) at afterConnectMultiple (node:net:1664:40) { errno: -4078, code: 'ECONNREFUSED',

Any help would be greatly appreciated.
1 Reply
fascinating-indigo
fascinating-indigo2y ago
Sounds like your connection details are not correct

Did you find this page helpful?