Effect CommunityEC
Effect Community12mo ago
1 reply
makisuo

Error with SSL Connection Using @effect/sql-pg and PostgreSQL

I keep gettting this error
[60] LOG: could not accept SSL connection: EOF detected
when trying to connect with SSL via @effect/sql-pg, I can connec twith any other postgres client I have tried I'm a bit at a loss. Works fine without SSL. Has anyone elese experienced this?

export const PgLive = PgClient.layerConfig({
    url: Config.redacted("DATABASE_URL"),

    connectTimeout: Config.succeed(3000),
    ssl: Config.succeed(true),
})
Was this page helpful?