If you see an error when trying to configure the Supabase connector, it could be that you're using the wrong credentials or the connection can not be established over the network.
Here's an example of what the error might look like:
Connection is not available, request timed out after 10001ms (total=0, active=0, idle=0, waiting=0)", "message": "State code: 08001; Message: The connection attempt failed.
There are three standard options to connect to a SupaBase database:
- Direct connection
- Transaction pooler
- Session pooler
If you are using a free SupaBase account direct connection doesn't come with an IPv4 IP Address, which Algolia would be trying to connect over, as such the connection will fail.
You can use the Transaction or Session pooler DB information to connect to the database as these use shared pools on Supabase or if you do need to use the direct connection option add IPv4 as a paid add-on to your SupaBase database.
Another issue where this error will be thrown is if the database credentials (username/password) you're using are incorrect.
Check your credentials and make sure you're using the connect username and password, and that you are using a connection that supports IPv4.