Supabase

S

Supabase

Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.

Join

Possible race condition when sharing Supabase client across users

Say I have something like this as a request handler of my server: ```py async def get_session_middleware(request: web.Request): # Get tokens from cookies
await supabase.auth.set_session(access_token, refresh_token)...

Seeking help regarding project restoration

Hello Supabase community! I'm seeking some help with my project, InternX. It has been stuck on the "Setting up project" screen for more than 24 hours now. This happened yesterday after I initiated a project restore. I have already filed an official support ticket, and my Ticket ID is SU-250328. I've attached a screenshot of what the screen looks like. Any help or guidance would be greatly appreciated! Thank you....
No description

Switch branch on CLI

Hello, maybe i misunderstand how the CLI works, but how do branches work? from what i can see, there isn't a specific way to switch my branch. For example, right now, on a branch i've labelled "develop", I've added an edge function and changed the data type of a column in my db. how do i know which branch I'm pulling/starting when working with supabase locally?

Different max rows for service role

Hi, I have max rows set to 40 which is perfect for the client side. However my edge functions process pending notifications in batches of 1000. But is limited because service role is also limited to the max rows set. So far I worked around it by sending one row of json. But this is really bad DX, does supabase offer something for this besides direct postgres connection or this...

Seeking help regarding project restoration

Hello team and community! I'm seeking some help with my project, Wild_Oasis. It has been stuck on the "Setting up project" screen for more than 24 hours now. This happened yesterday after I initiated a project restore. I have already filed an official support ticket, and my Ticket ID is SU-249736. I am on the Free Tier and understand there are no guaranteed response times, but since the project is completely inaccessible (an outage), I'm hoping someone might be able to take a look at the ticket when they have a moment. I've attached a screenshot of what the screen looks like. Any help or guidance would be greatly appreciated! Thank you....
No description

I cannot upgrade to the $25 dollar or any other upgrade for some reason #help

I have no clue why this is happening. When I try to hover over the upgrade button it will Not allow me to. Please help #help-and-questions...

email_confirmed_at is not synced with the auth.users table

Issue - email_confirmed_at is a deciding factor for confirmed_email sign ups. I am facing an issue where the DB data is not in sync with the data returned using the supabase.auth.signUpWith() API. Expected - Data should be in sync Actual - Seeing null returned from the API but the DB has a data set to it....

Need help to log in

When I try to log in I didn't get code for forgot password

Urgent Help Needed: Lost Data After Foreign Key Changes (No Manual Backup)

I’m in a bit of a panic with my Supabase project and could really use some help. I’m not a developer and built my app using AI tools, so I don’t have much technical experience. I applied several foreign key constraints across different tables in the database, and after that, things started going wrong. A lot of data stopped showing up, and several parts of my app are broken. For example, the bus listings no longer appear, and the accounts payable section has disappeared from the frontend. The problem began right after these changes, and I have no idea how to fix it. I’ve never manually backed up my database, so I don’t have a recent backup to restore from....

Cannot create new branch due to modified auth.jwt() — need help resetting to default

Hi everyone, I’m running into an issue with my Supabase project: In the past, when the auth schema was still editable, I updated the auth.jwt() function for development purposes....
No description

how to connect one github repo to different supabase branch projects

I have an app that has two github branches (main, development) which currently link to supabase branches (main, development). when I swtich branches in my editer, and run db pull or link status it always points the project to the main project branch project ref. why is this? What is the best practice to handle a prod and development branch? I want my supabase UI to be the source of truth, but im super confused how supabase migrations or schemas work. I need to keep them up to date with the remote db, but how?...

Python support on edge function

I'm currently working on the Edge function, but some of the capabilities aren't available yet, like download an YouTube video. Is there a way to use Python in an edge function or something different than an edge function that can function as a backend hosting with supabase? Because I want to avoid other platforms for my backend for simplicity.

Setting Secrets for PR Branches

Is there a way to set a secret specifically for a supabase branch using the CLI? I don't see any options listed in the secret set documentation that mentions specifying a branch. I'm working on some CI/CD actions that use functions and it'd be really useful to be able to do this.

What is the proper way to handle supabase directory being a few paths deep into my project?

Recently changed my repo into a monorepo with nx. The schema we want to have is supabase lives in ./libs/db/supabase. I tried running commands like supabase start --workdir ./libs/db/supabase from the command line, but it never seemed to apply my migrations properly. Only when I first cd into ./libs/db then run supabase start. If I want some of my common supabase commands to be npm scripts, do I just have the script cd into that directory, run the command, then cd back out? Im thinking there has to be a better way to do this?...

I want to set up my self-hosted analytics and I have unauthorized error.

I'm setting up my self-hosted logflare, but I'm getting this error. I don't know what it could be (I don't know if I'm adding the keys incorrectly).
No description

Lost tens or hundreds of photos

Hi Supabase Team, I ran into a serious issue with my project for an NGO, and I’m hoping you might be able to help. My project uses Next.js with Supabase for storage, authentication, and database. I had around 199 images in a storage bucket, which were linked to my database records (book covers)....

"failed to connect to postgres: failed to connect to" using supabase cli

Hey guys, When using the command supabase db diff -f using my hotspot internet im getting the following error: "failed to connect to postgres: failed to connect to host=db.************ user=postgres database=postgres: dial error (dial tcp [2a05:d014:1c06:5f12:b565:554e:2ccc:8d80]:5432: connect: no route to host)". Does anyone knows how to fix this?...

Tables wiped

Disaster struck today. Five tables in the project I've been working weeks on suddenly appeared empty. I use the Supabase MCP. I went to check Backups and discovered that being on the free tier meant there wasn't any backup. I've reported the incident to Supabase and pleaded to somehow restore the tables that got blown away somehow. I asked my coding AI for help in figuring out what happened. Gemini CLI: Okay, we have a prime suspect. The search found one highly relevant file: /database/migrations/001_initial_schema.js. A file named "initial_schema.js" is almost certainly a script used to set up the database tables...

I am not getting supabase user session cookies, even after ignoring hmr and .well-known endpoints

```import { createServerClient } from "@supabase/ssr"; import { NextResponse, type NextRequest } from "next/server"; const publicRoutes = ["/", "/:slug"]; const protectedRoutes = ["/form", "/username"];...

My services are unhealthy, checking logs I see: `the database system is starting up`

I've tried restarting multiple times, and sent a support ticket in a few days ago. I haven't heard back from support either.
No description