As a beginner frontend trainee, I have been tasked with configuring my project on node-typescript-koa-rest. Despite my best efforts, I encountered an error.
To set up the project, I added objection.js and knex.js to the existing repository and installed PostgreSQL. However, upon starting the project, I encountered a "TypeORM connection error: error: password authentication failed for user 'user'". The error message did not provide information on where to set the database username.
The start script.ts is currently running. To view it, visit https://pastebin.com/fm0TBaXQ. Where can I change the username and password?
Here is the full error message:
TypeORM connection error: error: password authentication failed for user "user"
at Connection.parseE (/home/valentin/Projects/app/node_modules/pg/lib/connection.js:553:11)
at Connection.parseMessage (/home/valentin/Projects/app/node_modules/pg/lib/connection.js:378:19)
at TLSSocket.<anonymous> (/home/valentin/Projects/app/node_modules/pg/lib/connection.js:119:22)
at TLSSocket.emit (events.js:203:13)
at TLSSocket.EventEmitter.emit (domain.js:476:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at TLSSocket.Readable.push (_stream_readable.js:210:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:166:17) {
name: 'error',
length: 100,
severity: 'FATAL',
code: '28P01',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'auth.c',
line: '328',
routine: 'auth_failed'
}