Connection terminated unexpectedly
I have my database set up like this
const pool = new Pool({
connectionString: process.env.XATA_DATABASE_URL,
max: 10,
});
export const db = drizzle(pool, {
schema: {
Invoices,
Customers,
Users,
BankAccounts,
Withdrawals,
},
});
it works but after a while I keep getting this error
uncaughtException: Error: Connection terminated unexpectedly
at Connection
Not sure what I am doing wrong
1 Reply
Hi, Kalem! I see you've also reached out via
[email protected]
. I'll continue to assist you via the support ticket and post anything that might be helpful to the community here.
Keep an eye out for my response on the support ticket!