NodeJS KnexJS ObjectionJS project needs proper setup

Job ID: 32740436

Budget: €30 – €250 EUR

Hello,

I'm building a personal project to learn NodeJS with KnexJS and ObjectionJS.

the project is very simple at the moment and you can see it here

https://github.com/Jakub41/testingKnexObjectionJS

I need help to make it run correctly so I may continue developing.

The issue I'm having is with my only query which gave an error

```json
{
"status": 500,
"message": "Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?",
"stack": "KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?\n at Client_PG.acquireConnection (/home/node/code/node_modules/knex/lib/client.js:307:26)\n at async Runner.ensureConnection (/home/node/code/node_modules/knex/lib/execution/runner.js:294:28)\n at async Runner.run (/home/node/code/node_modules/knex/lib/execution/runner.js:30:19)\n at async QueryBuilder.execute (/home/node/code/node_modules/objection/lib/queryBuilder/QueryBuilder.js:446:22)\n at async getPokemons (file:///home/node/code/src/controllers/pokemons/PokemonsController.js:9:24)"
}
```

I hope you may help me and allow me to continue my learning process

Thank you
Related categories: JavaScript Node.js Express JS PostgreSQL