# I cannot connect to a supabase database

**URL:** <https://community.mindstudio.ai/t/i-cannot-connect-to-a-supabase-database/1161>\
**Category:** Support\
**Created:** [June 27, 2025, 9:01am UTC](https://community.mindstudio.ai/t/i-cannot-connect-to-a-supabase-database/1161 "2025-06-27T09:01:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![amandayal](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@amandayal](https://community.mindstudio.ai/u/amandayal)\
**Post date:** [June 27, 2025, 9:01am UTC](https://community.mindstudio.ai/t/i-cannot-connect-to-a-supabase-database/1161/1 "2025-06-27T09:01:23Z")

</div>

![image](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/4b8d3341fbd72790f0ce44b7da73fafda07cef17.png)

I keep getting this error in query database block. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://community.mindstudio.ai/u/sean)\
**Post date:** [June 27, 2025, 12:00pm UTC](https://community.mindstudio.ai/t/i-cannot-connect-to-a-supabase-database/1161/2 "2025-06-27T12:00:57Z")

</div>

Can you share what the configuration looks like? This error basically says that the database can’t be reached.

---

<div class="post-metadata">

**Author:** ![amandayal](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@amandayal](https://community.mindstudio.ai/u/amandayal)\
**Post date:** [June 27, 2025, 9:48pm UTC](https://community.mindstudio.ai/t/i-cannot-connect-to-a-supabase-database/1161/3 "2025-06-27T21:48:50Z")

</div>

I understand what th error means, the config is correct only, but i doesn’t connect to supabase

---

<div class="post-metadata">

**Author:** ![AIFusionCoven](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AIFusionCoven](https://community.mindstudio.ai/u/AIFusionCoven)\
**Post date:** [June 30, 2025, 12:55pm UTC](https://community.mindstudio.ai/t/i-cannot-connect-to-a-supabase-database/1161/4 "2025-06-30T12:55:14Z")

</div>

it looks like it is using a local var. shouldn’t that be the supabase url?

---

<div class="post-metadata">

**Author:** ![amandayal](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@amandayal](https://community.mindstudio.ai/u/amandayal)\
**Post date:** [June 30, 2025, 1:35pm UTC](https://community.mindstudio.ai/t/i-cannot-connect-to-a-supabase-database/1161/5 "2025-06-30T13:35:21Z")

</div>

can you tell a bit more on that, what local var?

---

<div class="post-metadata">

**Author:** ![AIFusionCoven](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AIFusionCoven](https://community.mindstudio.ai/u/AIFusionCoven)\
**Post date:** [July 5, 2025, 8:04pm UTC](https://community.mindstudio.ai/t/i-cannot-connect-to-a-supabase-database/1161/6 "2025-07-05T20:04:57Z")

</div>

on the image, it mentions ‘local’. just wondering if your code is being ran on the localhost.

---

<div class="post-metadata">

**Author:** ![amandayal](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@amandayal](https://community.mindstudio.ai/u/amandayal)\
**Post date:** [July 21, 2025, 9:19pm UTC](https://community.mindstudio.ai/t/i-cannot-connect-to-a-supabase-database/1161/7 "2025-07-21T21:19:20Z")

</div>

NO, Sir.  
If anyone else needs help with this.  
The connect to database doesn’t work well for supabase.  
I ended up using a custom function to make an api call with all the relevant credentails or you can also use the HTTP request block to make an api call with the relevant parameters.
