TypeORM mysql Pool does not exist

268 views Asked by At

I am using the mysql driver with typeORM and sometimes typeORM throws a "Error: Pool does not exist." expection which seems to occur just randomly, but when it occurs the entire application is broken. Still some connections seem to be working fine, but some connections are broken.

On the mysql driver page I have found the same issue I am facing:
https://github.com/mysqljs/mysql/issues/628

It says that it has something to do with pool names or something. In TypeORM pooling is configured by "extra.connectionLimit" as it is specified here:
create connection pool TypeOrm

There seems to be no way to configure any name of pools, so I am wondering what TypeORM does in order to setup the connection pool. Maybe there is something which is not done correctly? Any help in this issue would be much appreciated because it is a very annoying issue.

ormconfig.json file:

{
  ...
  extra: {
    connectionLimit: 100,
  },
  ...
}

Some logs from the application: enter image description here

0

There are 0 answers