VibeFix

Video

Database error querying schema (Supabase Auth)

"Database error querying schema." Sign-in fails with a 500 error from Supabase Auth.

Video transcript

"Database error querying schema." Sign-in fails with a 500 error from Supabase Auth. It can mean a row in auth.users has NULL in a column where Auth expects text. This can happen after users were added or edited with SQL. Common sources: a seed file, a migration, a copied INSERT script, or a value cleared by hand. Your app's code may be fine. Step 1. Open Logs, then Auth. Find the request that returned 500, and write down the column the log names, for example confirmation_token. Step 2. In the SQL Editor, count the rows where that column is NULL. Step 3. Set that column's NULLs to an empty string. Change only the column the log names. Step 4. Stop it coming back: create users through the Auth API, not with raw SQL in a seed file. VibeFix (vibe-fixer.com): free check first.

Read the full guide: Database error querying schema (Supabase): fix

All videos