CLI - supabase link - "failed to connect to postgres" error
I'm trying to set up a local environment for an existing Supabase project.
I have: - installed the CLI - successfully logged in using the CLI
Now I'm trying to link the project using
supabase link
supabase link
but I'm getting the following error:
failed to connect to postgres: failed to connect to `host=aws-0-eu-west-2.pooler.supabase.com user=postgres.XXXXXXX database=postgres`: failed to receive message (timeout: context deadline exceeded)
failed to connect to postgres: failed to connect to `host=aws-0-eu-west-2.pooler.supabase.com user=postgres.XXXXXXX database=postgres`: failed to receive message (timeout: context deadline exceeded)
`
(I've redacted the project ID).
Weirdly enough that step worked earlier but I then logged out using the CLI as I wanted to start again after running into some errors when trying to pull my remove DB schema.
Has anyone ever encountered that error? What am I doing wrong?
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.