Answers for "Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?"

0

Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?

"pool": {
  "min": 2,
  "max": 6,
  "createTimeoutMillis": 3000,
  "acquireTimeoutMillis": 30000,
  "idleTimeoutMillis": 30000,
  "reapIntervalMillis": 1000,
  "createRetryIntervalMillis": 100,
  "propagateCreateError": false // <- default is true, set to false
},
Posted by: Guest on January-09-2021
0

Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?

require('dotenv').config();

module.exports = {

  development: {
    client: 'mysql2',
    connection: {
      port: process.env.db_port,
      host: process.env.db_host,
      database: process.env.db_name,
      user: process.env.db_user,
      password: process.env.db_key,
      connectTimeout: 90000
    },
    debug: true,
    pool: {
      min: 1,
      max: 20,
    },
    migrations: {
      directory: __dirname + '/knex/migrations',
    },
    seeds: {
      directory: __dirname + '/knex/seeds',
    },
  }
};
Posted by: Guest on January-09-2021

Code answers related to "Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?"

Browse Popular Code Answers by Language