S
Supabase2w ago
Igor

supabase link command SSL connection error

Running supabase link is throwing an error for 2 out of 3 of my projects, sometimes one of them works, but one of them is always the same error. Any ideas? Thanks!
failed to connect to postgres: failed to connect to `host=aws-0-us-east-1.pooler.supabase.com user=cli_login_postgres.[REDACTED] database=postgres`: server error (FATAL: SSL connection is required (SQLSTATE XX000))
failed to connect to postgres: failed to connect to `host=aws-0-us-east-1.pooler.supabase.com user=cli_login_postgres.[REDACTED] database=postgres`: server error (FATAL: SSL connection is required (SQLSTATE XX000))
3 Replies
Igor
IgorOP2w ago
If this helps
Igor
IgorOP2w ago
I now notice that "Enforce SSL on incoming connections" is enbled in the project that is failing. Toggling that off did the trick. Is there an issue with turning this off?
vick
vick2w ago
The "force ssl" database setting is not the same as using https to the API. It enforces connections on the DB server port to be SSL protected. That is, the REST API process has to use SSL to talk to the DB. I don't know if it does that.

Did you find this page helpful?