Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

324
Views
Typeform poolErrorHandler cant handle errors

Typeform poolErrorHandler cant get triggered while error(eg. permission denied for table xx) occurs. for now, we enabled database password auto-rotation, once password changed, db will failed to retrieve data, I need to handle the error and establish a new connection with new password, I would like to use poolErrorHandler to detect while error happens, but it never get triggered,

const config = {
    type: 'postgres',
    synchronize: false,
    poolErrorHandler: (err: any) => {
      console.log('db-poolErrorHandler');
    },
...
}
const connectionPool = await createConnection(config);

and only get UnhandledPromiseRejectionWarning: QueryFailedError

is there anything I missed or typeorm actually not support poolErrorHandler?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!