Your Supabase or Postgres query fails with:
{ "code" : "42P01" , "message" : "relation \"public.todos\" does not exist" }
Enter fullscreen mode
Exit fullscreen mode
In the Supabase JS client you may instead see PGRST205: Could not find the table in the schema cache . This one, error 42P01, comes straight from Postgres. It usually appears after a deploy, a migration, or when you point an app at a new project.
What it means
Postgres looked for a table or view with that exact name in the schema it was told to use, and found nothing. "Relation" is Postgres for table, view or sequence. The error is about where the table is, not about permissions.
The 6 usual causes
The migration never ran in this environment. The table exists locally or in dev, but not in production.
Wrong project. The app points at a different Supabase project than the one where you created the table.
Wrong schema. The table is in private or a custom schema, and the query defaults to public .
Case and quoting.…