Can't connect to Sydney region but can connect to EU using neon driver
Hi, I'm in EU, and I'm trying to connect to the Sydney region as that's where my main DB will live.
I can connect using psql, but not the neon driver, it seems to timeout straight away.
I'm trying to run drizzle-kit push
I'm using Next.js locally to connect with drizzle ORM.
Using a VPN connected to Syndey results in the same error
Node version is 23.5
I've tried:
1. adding an agent to fetchOptions in the neon driver with an increased timeout
2. connectionTimeout=10 in url
3. using Pool connection
Wondering if anyone else has experienced this issue and/or can help out, would greatly appreciate it.
I can work around it, its just an annoyance.
I can connect to EU no problem, but connecting to Sydney, I get the following error:
4 Replies
other-emeraldOP•11mo ago
client code (don't think this is used for migrations):
Can connect using psql:
drizzle.config.ts
rare-sapphire•11mo ago
Using a VPN connected to SyndeyThis is likely what's preventing you from connecting
other-emeraldOP•8mo ago
Sorry, I meant I tried using a VPN as a workaround and that didn't work either.
My friend from Australia was able to connect to the instance, so it looks like a timeout issue from my end.
Solution for me was temporarily disabling IPv6:
sudo sysctl net.ipv6.conf.all.disable_ipv6=1
Can connect no problem now lol
Took me an ungodly amount of debugging
other-emerald•8mo ago
Sorry - I only just saw this. Yeah this is a common issues, nodejs has a terrible "happy eyeballs" implementation https://r1ch.net/blog/node-v20-aggregateeerror-etimedout-happy-eyeballs.
@Daniel I think we should update our connection errors page with some more information on this