You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On running longevity, we are getting Knex timeout issue for PostgreSQL connection. This issue is intermittent.
Use-case: We need to upsert (insert/Modify) a table and insert the operation into audit table with the type of operation performed. for example: if insert operation performed then "insert" as operation string gets inserted in the audit table.
There is a transaction in query with async-await approach.
Error 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 (/app/node_modules/knex/lib/client.js:332:26)\n at async Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:305:28)\n at async Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:19)
Environment
Knex + Postgres + Node version:
@lorefnon @smorey2
Bug
Database connection
Code contain Database Query
Questions
The text was updated successfully, but these errors were encountered: