Im having this error after doing update on my database, when i do insert or selects all work well, but after an update (the update is done correctly) my app crashes, i have my env variables correctly configured in .env:
DB_USER=x
DB_PASSWORD=x
DB_HOST=x
DB_PORT=x
DB_NAME=x
SSL=true
This is the error on console:
undefined
undefined
undefined
undefined
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
Error: connect ECONNREFUSED 127.0.0.1:6668
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) {
errno: -111,
code: ‘ECONNREFUSED’,
syscall: ‘connect’,
address: ‘127.0.0.1’,
port: 6668
}
Node.js v18.12.1
[nodemon] app crashed - waiting for file changes before starting…