Issue connecting in Deno via SSL
Someone already opened up a bug in the Deno repo here: https://github.com/denoland/deno/issues/28526
I'm having the same problem. However, am able to connect to the same database with PostgreJS, which doesn't even advertise Deno support.
So, I bet the problem isn't in Deno, but may be in some Deno-specific TLS-handling inside postgres.
I am running into this issue intermittently too, however in a different runtime environment (Bun).
The issue is also reported in drizzle orm Github here: drizzle-team/drizzle-orm#3748.
This is a problem when you absolutely need to use deno like in Supabase edge functions...
Hope it will be fixed soon.