Skip to content

Security, in plain language

Short write-ups about what actually goes wrong in AI-built apps, and what to do about it.

Security basics

"new row for relation violates check constraint" in Supabase

Supabase "violates check constraint": a value in the row broke a rule on the table. How to read the rule, and why you should keep it.

Security basics

Supabase "operator does not exist: uuid = text" in a policy

Supabase "operator does not exist: uuid = text": auth.uid() is a uuid and your column is text. Make them match, and never loosen the policy.

Security basics

Supabase PGRST200: "Could not find a relationship between"

Supabase "Could not find a relationship between" means no foreign key links the two tables. Add one, use ! when there are two, and keep views under RLS.

Security basics

Supabase only returns 1000 rows: how to get the rest

Supabase only returns 1000 rows per request because of its Max rows setting. How to page through the rest, count them, and what the cap is there for.

Security basics

"Error running hook URI" in Supabase: why nobody can sign in

"Error running hook URI" means a Supabase Auth hook failed, so sign-in or sign-up fails for everyone. Where the real error is, and the safe fix.

Security basics

Supabase Realtime CHANNEL_ERROR: why a subscription gets nothing

Supabase Realtime CHANNEL_ERROR, or no events at all: usually a rule doing its job. How to read the reason and fix it without opening your data.

Security basics

ERR_SSL_VERSION_OR_CIPHER_MISMATCH on a new custom domain

ERR_SSL_VERSION_OR_CIPHER_MISMATCH on a domain you just connected: why the name has no certificate yet, and when to wait, go DNS only or shorten the name.

Security basics

"Application error: a client-side exception has occurred" in Next.js

Application error: a client-side exception has occurred on your v0 or Next.js app: where the real error is and how to fix it.

Backups

Replit database rollback: does a checkpoint bring your data back?

A Replit database rollback restores the development database only when you ask. Your live data has a restore of its own. Which one you need, and how.

Security basics

"The object exceeded the maximum allowed size" in Supabase Storage

"The object exceeded the maximum allowed size" means a Supabase Storage limit refused the file. Which of two limits did it, and how to raise it.

Security basics

"Signups not allowed for this instance" in Supabase

"Signups not allowed for this instance" is Supabase refusing new accounts. Which switch does it, and why hiding your sign-up form is not the same thing.

Security basics

Is Lovable down, or is it your app? How to tell

Is Lovable down, or is it your app? Its editor, hosting and backend fail separately, and a paused backend looks like an outage. Here is how to tell.

Security basics

"Failed to load module script": the blank page after a deploy

Failed to load module script and a blank page after a deploy: how to tell if one visitor or every visitor sees it, and the fix for each case.

Security basics

ERR_TOO_MANY_REDIRECTS on a custom domain behind Cloudflare

ERR_TOO_MANY_REDIRECTS after you put Cloudflare in front of your site: why the loop happens, and the fix that keeps your sign-ins encrypted.

Backups

Lovable Cloud backup: does Lovable back up your database?

A Lovable Cloud backup is taken daily and kept about 14 days, in the same backend as your data. What it holds, who can restore it, how to keep a copy.

Everything here is written by a security expert, and aimed at whoever pressed deploy.

Vlad Tkachenko