Railway can't establish connection with supabase postgres DB #43111
Replies: 3 comments 3 replies
|
I'm not sure what claude is referring to here but the defaut for Supabase is IPV6 https://supabase.com/docs/guides/platform/ipv4-address. I'm not sure if Railway is one of the ones that needs IPV4 but if you head to the connection tab in the dashboard home page you can use different connection strings for your Database including the session pooler for IPv4 |
|
To add to what @k1ng-arthur said - Railway specifically doesn't support outbound IPv6, which is why the direct connection fails. Supabase's direct connection ( The session pooler is the right fix. To find it: click the Connect button at the top of your Supabase project dashboard. You should see three options - "Direct connection", "Session pooler", and "Transaction pooler". Grab the Session pooler string - that one routes through It'll look something like: One thing to watch - the username for pooler connections is Drop that into your Give that a go and let me know if it sorts it out. |
|
Glad the pooler sorted it out! On the |

To add to what @k1ng-arthur said - Railway specifically doesn't support outbound IPv6, which is why the direct connection fails. Supabase's direct connection (
db.[ref].supabase.co) only resolves to an IPv6 address, and Railway can't route that.The session pooler is the right fix. To find it: click the Connect button at the top of your Supabase project dashboard. You should see three options - "Direct connection", "Session pooler", and "Transaction pooler". Grab the Session pooler string - that one routes through
pooler.supabase.comwhich supports IPv4.It'll look something like:
One…