KnexTimeoutError
Hi, I am trying to connect directus to supabase, but when I tried to run it I got,
irectus-1 | KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
I am using docker for directus and supabase as the db
If anyone knows how to help I’d really appreciate it
4 Replies
Which
db
connection string are you using?I am using the direct db connection string.
Are you using the session pooler connection string? as that's the one you should be using.
So I changed my connection string to the session pooler connection string, and it works, but I have an error in regards to the certificate.
Attaching to directus-1
directus-1 | Error: self-signed certificate in certificate chain
directus-1 | at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
directus-1 | at TLSSocket.emit (node:events:518:28)
directus-1 | at TLSSocket._finishInit (node:_tls_wrap:1078:8)
directus-1 | at ssl.onhandshakedone (node:_tls_wrap:864:12) {
directus-1 | code: 'SELF_SIGNED_CERT_IN_CHAIN'
directus-1 | }
directus-1 exited with code 1