NeonN
Neon2y ago
2 replies
popular-magenta

Can't connect to Neon from fly.io

My app deployed on fly.io cannot connect to my Neon DB. I get:
NeonDbError: Error connecting to database: request to https://api.us-east-2.aws.neon.tech/sql failed, reason: socket hang up

on every request. I've been troubleshooting this for hours, can't figure it out, fly.io forums are no help. My code works on local and on Cloudflare Pages. Pls help 😭
Was this page helpful?