Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearer error messages for supabase link #3064

Open
artgillespie opened this issue Jan 22, 2025 · 0 comments
Open

Clearer error messages for supabase link #3064

artgillespie opened this issue Jan 22, 2025 · 0 comments

Comments

@artgillespie
Copy link

Is your feature request related to a problem? Please describe.

When linking projects for local development with supabase link, you get the following error for the following cases

  • Your host isn't in the IP allow list.
  • Your host is in the IP allow list, but you've provided an invalid password
failed to connect to postgres: failed to connect to `host=aws-0-us-east-1.pooler.supabase.com user=postgres.vizglusznacdygtioulv database=postgres`: server error (FATAL: SSL connection is required (SQLSTATE XX000))

Searches on this error send you down incorrect (and time-consuming) rabbit holes to threads like these

Describe the solution you'd like

Finer-grained error messages. When I switch to trying to connect with psql, I get the following errors, so I suspect we can provide them in the error output from supabase link

# host not in IP allow list
psql: error: connection to server at "aws-0-us-east-1.pooler.supabase.com" (52.45.94.125), port 6543 failed: FATAL:  Address not in tenant allow_list: {xxx, xxx, xxx, xxx}
connection to server at "aws-0-us-east-1.pooler.supabase.com" (52.45.94.125), port 6543 failed: FATAL:  SSL connection is required
# incorrect password
psql: error: connection to server at "aws-0-us-east-1.pooler.supabase.com" (44.216.29.125), port 6543 failed: error received from server in SCRAM exchange: Wrong password
@artgillespie artgillespie changed the title Clearer error message for supabase link Clearer error messages for supabase link Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant