Questions tagged [supabase]

Supabase is a collection of open source tools to build modern applications quickly and efficiently. It uses the PostgreSQL database to power its authentication, database, and storage features. Use this tag when you are having problems, and not to ask for new features.

Supabase is a combination of open source tools. It builds the features of Firebase using enterprise-grade, open source products. Supabase is not a 1-to-1 mapping of Firebase. Its aim is to give developers a Firebase-like developer experience using open source tools.

Supabase has an official JavaScript library as well as community built Dart, Rust, Kotlin, C# and Python libraries.

Supabase is composed of four components

  • Database
  • Authentication
  • Storage
  • Functions (coming soon)
1213 questions
4
votes
0 answers

Supabase "TypeError: fetch failed"

I am making a to-do list application with Supabase and NextJS-13 and while fetching the lists from Supabase, the server gave me this error Error Image My List table on Supabase has three columns: id created_at list_name Supabase generates the…
4
votes
2 answers

Upload image after clicking on submit button, not on input change

I want to create a form that uploads the images to Cloudinary and then gets the image's URL and parses it into Supabase database, but I only want to upload the images when I click the Publish button (right now the image will auto upload when I…
Tan Huynh
  • 105
  • 11
4
votes
1 answer

Supabase - Upsert & multiple onConflict constraints

I cannot figure out how to proceed with an Upsert & "multiple" onConflict constraints. I want to push a data batch in a Supabase table. My data array would be structured as follows: items = [ { date: "2023-01-26", url: "https://wwww.hello.com"},…
Henri
  • 1,571
  • 5
  • 23
  • 38
4
votes
4 answers

Supabase Edge function says no body was passed

I'm invoking a supabase edge function with the following async function getData(plan_data){ console.log(plan_data) console.log(JSON.stringify({plan_data})) const { data, error } = await…
daredevil
  • 53
  • 5
4
votes
1 answer

Supabase dynamic RPC function

I am looking to create an RPC for grabbing distinct values of a column but I am going to be doing this across multiple tables and I don't want to have to write this function over and over for each column and each table. I have the following SQL…
Craig Howell
  • 1,114
  • 2
  • 12
  • 28
4
votes
1 answer

Cannot destructure property 'supabaseUrl' of 'getConfig(...)' as it is undefined

I followed @supabase/auth-helpers-sveltekit guide on how to integrate supabase-auth helpers with sveltekit. Yet, when running the dev server, I get an internal error Cannot destructure property 'supabaseUrl' of 'getConfig(...)' as it is…
Aerodynamic
  • 782
  • 5
  • 19
4
votes
1 answer

Supabase triggers : ERROR: function charindex(unknown, text) does not exist (SQLSTATE 42883) (SQL)

I have two tables auth (this is the default one given by supabase) and profiles when a new row is added in auth table I want a new row with the data added in auth table to be added in profiles tables as well Profiles tables has 3 columns…
4
votes
1 answer

Connecting to postgres on supabase via pgBouncer from prisma

Problem running out of database connections in prod leading to errors like this; Error: Invalid `prisma.queryRaw()` invocation: Timed out fetching a new connection from the connection pool. More info: http://pris.ly/d/connection-pool (Current…
sauntimo
  • 1,531
  • 1
  • 17
  • 28
4
votes
1 answer

supabaseUrl is required sveltekit

I'm having this problem for quite a while and want to solve this: According to supbase documentation you create a .env file VITE_SUPABASE_URL="YOUR_SUPABASE_URL" VITE_SUPABASE_ANON_KEY="YOUR_SUPABASE_KEY" then you call them in…
equi
  • 164
  • 1
  • 10
4
votes
2 answers

Add aditional user information when signup supabase

I am trying to add additional data in a user record in supabase, I have created a trigger that is called after a record has been inserted in auth user that should add the user id and username in the profiles table. This happens but it doesn't add…
Richi
  • 438
  • 5
  • 18
4
votes
2 answers

Supabase not allowing upload of files into storage bucket

I have a simple script for uploading a .txt file into a Supabase bucket named 'training-data'. The bucket was made public, and I made sure to include the necessary storage/object policies in order to allow access. I know others have encountered the…
Chubbyman
  • 73
  • 1
  • 6
4
votes
1 answer

How to check email already exists in Supabase table for signup in flutter?

Here I tried to move from firebase to Supabase in my flutter project. I stuck on first stage. onPress register button, final response = await Supabase.instance.client.auth.signUp(email,pass); This is create new user in table. But How could I check…
tailor
  • 373
  • 4
  • 19
4
votes
3 answers

How to pass params in Nuxt 3 server/api?

I can't figure it out how to pass params to an anonymous function in Nuxt 3. index.vue: