Lambda
Lambda
DTDrizzle Team
Created by Lambda on 1/26/2024 in #help
CONNECT_TIMEOUT
I run into a strange problem. I use postgres-js and drizzle in my server. My DB is hosted by scaleway. Everything works fine but after hours of successful connections, i receive a CONNECT_TIMEOUT error. My drizzle connection looks like this and used across the whole project. I cant figure it out why it is behaving this way. Any help would be appreciated
typescript
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";

const queryClient = postgres(
process.env.DATABASE_URL
);

export const db = drizzle(queryClient, { logger: true });
typescript
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";

const queryClient = postgres(
process.env.DATABASE_URL
);

export const db = drizzle(queryClient, { logger: true });
4 replies