Fixes โบ Error code lookup
Error code lookup
Find the exact error code or message your Lovable, Bolt, Cursor, Replit or v0 app shows, then open the matching fix. Link to a single code with /errors.html#code.
PGRST116 Supabase / PostgREST (HTTP 406).single() matched 0 rows or 2+ rows ('JSON object requested, multiple (or no) rows returned' / 'Cannot coerce the result to a single JSON object')
Fix: Supabase .single() error PGRST116: JSON object requested, multiple (or no) rows returned โ
42501 new row violates row-level security policy Supabase / PostgresAn INSERT or UPDATE was blocked by an RLS policy WITH CHECK
Fix: new row violates row-level security policy for table โ
42501 permission denied for table Supabase / PostgresThe anon or authenticated role has no GRANT on the table
Fix: Supabase "permission denied for table" (42501) on a new table โ
42P01 relation does not exist Supabase / PostgresThe table is missing, misspelled or in another schema
Fix: Postgres error: relation "public.xyz" does not exist โ
data: [] with error: null SupabaseRLS hides the rows, so a select returns an empty list with no error
Fix: Supabase query returns an empty array (no error) โ
update() returns no error but nothing changes SupabaseRLS USING clause or missing SELECT policy means 0 rows were updated
Fix: Supabase update says saved but the change is gone after refresh โ
53300 too many clients already Supabase / PostgresConnection limit reached, usually serverless functions without the pooler
Fix: Postgres: too many connections / remaining connection slots are reserved โ
FunctionsHttpError (non-2xx status code) Supabase Edge FunctionsThe Edge Function ran and returned 4xx or 5xx
Fix: Supabase: Edge Function returned a non-2xx status code (how to find the real error and fix it) โ
FunctionsFetchError Supabase Edge FunctionsThe request never reached the function, often CORS preflight
Fix: Supabase Edge Function fails with CORS or 'Failed to send a request' โ
StorageApiError 403 new row violates row-level security policy Supabase StorageMissing storage.objects policy for the bucket
Fix: Supabase Storage upload fails: new row violates row-level security policy (403) โ
over_email_send_rate_limit (429) Supabase AuthBuilt-in email sender limit hit, set up custom SMTP
Fix: Supabase confirmation, magic link or password reset emails not sending โ
over_request_rate_limit (429) Supabase AuthToo many Auth requests from one IP; if your server signs users in, all users share its IP, so forward the user IP with Sb-Forwarded-For
Fix: Login rate limit only counts per email: credential stuffing gets through โ
captcha_failed Supabase AuthCAPTCHA protection is on but the sign-in, sign-up or reset call did not send a valid captchaToken
Fix: Login rate limit only counts per email: credential stuffing gets through โ
Failed to fetch after inactivity SupabaseFree project paused for inactivity
Fix: Supabase project paused: app suddenly can't connect (Failed to fetch, 540) and how to bring it back โ
Error 400: redirect_uri_mismatch Google OAuthCallback URL not listed in the OAuth client
Fix: Error 400: redirect_uri_mismatch (Google sign-in) โ
Redirect to http://localhost:3000 after login Supabase AuthSite URL / redirect URLs still point at localhost
Fix: Magic link / OAuth login redirects to localhost:3000 โ
StripeSignatureVerificationError StripeWebhook body parsed before verification or wrong whsec_ secret
Fix: Stripe webhook: No signatures found matching the expected signature โ
No such price: 'price_...' (resource_missing) StripeTest and live keys or IDs mixed up
Fix: No such price / No such customer (test vs live mode mix-up) โ
Your webhook endpoint is failing Stripe emailLive deliveries keep failing and the endpoint may be disabled
Fix: Stripe email: Your webhook endpoint is failing and will be disabled. How to fix and re-enable it โ
404: NOT_FOUND on refresh VercelSingle-page app route without a rewrite to index.html
Fix: 404 NOT_FOUND when refreshing a page (React/Vite SPA) โ
Command "npm run build" exited with 1 VercelType or lint errors fail the production build
Fix: Vercel build fails: Type error / ESLint errors (works locally) โ
Blocked by CORS policy BrowserThe API does not send Access-Control-Allow-Origin for your domain
Fix: CORS error: blocked by CORS policy: No 'Access-Control-Allow-Origin' header โ
429 insufficient_quota / You exceeded your current quota OpenAIQuota or billing limit hit, often from a runaway loop
Fix: OpenAI 429 'You exceeded your current quota' or a surprise AI bill โ
Too many re-renders / Maximum update depth exceeded ReactState set during render or an effect with a changing dependency
Fix: Too many re-renders / useEffect infinite loop โ
Hydration failed Next.js / ReactServer HTML differs from the first client render
Fix: Hydration failed because the server rendered HTML didn't match the client โ
550 5.7.26 unauthenticated email Gmail / emailSPF, DKIM or DMARC missing for the sending domain
Fix: App emails (sign-up, password reset, receipts) land in spam: fix SPF, DKIM and DMARC โ
GHSA-4wq4-2ppv-q3hg / CVE-2026-121802 Better Auth (critical)@better-auth/expo below 1.7.16 can sign forged tokens, allowing account takeover; upgrade and rotate the secret
Fix: Better Auth security release (Nov 2026): upgrade to 1.7.16 to stop Expo account takeover โ
Security Advisor 0007 policy_exists_rls_disabled Supabase lintPolicies exist but RLS is off, often an AI shortcut, so none are enforced
Fix: AI "fixed" my Supabase error by disabling RLS or using the service_role key: how to undo it safely โ
Security Advisor 0010 security_definer_view Supabase lintA view runs with its creator's rights and bypasses RLS, so it can return every user's rows
Fix: Supabase view shows every user's data even with RLS on: fix Security Advisor 0010 security_definer_view โ
Security Advisor 0002 auth_users_exposed Supabase lintA public view reads auth.users and can expose every user's personal data
Fix: Supabase view shows every user's data even with RLS on: fix Security Advisor 0010 security_definer_view โ
Security Advisor 0016 materialized_view_in_api Supabase lintA materialized view is readable by anon or authenticated and cannot be protected by RLS
Fix: Supabase view shows every user's data even with RLS on: fix Security Advisor 0010 security_definer_view โ
Privilege escalation: user can update own role, is_admin or plan Security reviewAn owner UPDATE policy lets any user set role = 'admin' or plan = 'pro' on their own row; RLS checks rows, not columns
Fix: Any user can make themselves admin or Pro: Supabase RLS lets users update their own role, plan or is_admin column โ
auth.jwt() -> 'user_metadata' used in a policy Supabase Authuser_metadata can be changed by the user with supabase.auth.updateUser(), so it must not grant roles or plans
Fix: Any user can make themselves admin or Pro: Supabase RLS lets users update their own role, plan or is_admin column โ
Security Advisor 0013 rls_disabled_in_public Supabase lintA table in the public schema has RLS disabled and is open to the anon key
Fix: Supabase table has RLS disabled (public Data API access) โ
Security Advisor 0024 permissive_rls_policy Supabase lintA policy uses true for its check, so any user can read or write
Fix: Supabase RLS is on but every user can read every row: fix USING (true) and auth.uid() is not null policies โ
Detected potential conflicts, please review Replit PublishPublish asks whether a removed column or table was renamed; answering create new drops the old one with its data
Fix: Replit rollback did not bring my data back: how to restore the development or production database โ
Development database changes detected Replit PublishPublish will apply dev schema changes to production; read the generated SQL and any orange data-loss warning first
Fix: Replit rollback did not bring my data back: how to restore the development or production database โ
Lovable Quick scan: tables without row-level security, or access rules that let everyone through Lovable security scanThe database review found a table anyone can read with the public key; check whether customer data is exposed without login
Fix: Is my Lovable app leaking data without login? A Supabase RLS audit checklist after the Crissy Field study โ
401 Missing authorization header / Invalid JWT on a Stripe webhook Supabase Edge FunctionsStripe sends no Supabase JWT, so the default verify_jwt check rejects every delivery before your code runs
Fix: Stripe webhook returns 401 from a Supabase Edge Function (Missing authorization header / Invalid JWT) โ
Admin page or /admin route opens for a non-admin user (force browsing) Security reviewAdmin access is only checked in the frontend; anyone can open the URL or call the admin API directly
Fix: Admin page is hidden but not protected (anyone can open /admin or call admin APIs) โ
CVE-2025-29927 / GHSA-f82v-jwr5-mffw Next.js middleware (critical)Authorization done only in middleware could be bypassed on unpatched self-hosted Next.js; upgrade to 15.2.3, 14.2.25, 13.5.9 or 12.3.5
Fix: Admin page is hidden but not protected (anyone can open /admin or call admin APIs) โ
Content-Security-Policy (CSP) header not implemented Mozilla HTTP Observatory / security scanThe host sends no CSP; add one on the host, in report-only mode first
Fix: Missing security headers (CSP, X-Frame-Options, nosniff) on a Vercel or Netlify app โ
Refused to load the script because it violates the following Content Security Policy directive Browser consoleA new or AI-written CSP blocks a script your app needs; switch to report-only, then allow only the exact source or use a nonce
Fix: Missing security headers (CSP, X-Frame-Options, nosniff) on a Vercel or Netlify app โ
X-Frame-Options header not set / X-Content-Type-Options header missing Security scanClickjacking and MIME-sniffing protections are missing; add X-Frame-Options: DENY (or frame-ancestors) and nosniff on the host
Fix: Missing security headers (CSP, X-Frame-Options, nosniff) on a Vercel or Netlify app โ
502 Bad Gateway on the published replit.app URL after republishing Replit published appThe new version is not answering Replit's proxy: it crashed on startup, listens on localhost or the wrong port, or lacks a production secret; read the deploy logs
Fix: Replit app shows 502 Bad Gateway after republishing (or publish fails at the last step) โ
Publishing fails at the final Promote step (health check) Replit PublishReplit's request to your homepage got no answer within about five seconds, or no server listened on 0.0.0.0 and the exposed port
Fix: Replit app shows 502 Bad Gateway after republishing (or publish fails at the last step) โ
Hard-coded credentials (CWE-798) Code scanner / security reviewA password, test account or key is written into the code or bundle; remove it, delete the test account and rotate the secret
Fix: Demo login, auto-login or hard-coded test credentials left in your live app โ
Active debug code (CWE-489) Code scanner / security reviewA dev-only shortcut such as auto-login, demo mode or skip-login is still active in production; remove it or guard it with import.meta.env.DEV
Fix: Demo login, auto-login or hard-coded test credentials left in your live app โ
Bucket not found (on a /storage/v1/object/public/ link) Supabase Storage (HTTP 400, statusCode 404 in the body)A public link was built with getPublicUrl for a private bucket, or the bucket name does not match exactly; make the bucket public or use createSignedUrl
Fix: Supabase Storage file links broken: private bucket, getPublicUrl and expired signed URLs โ
InvalidJWT: "exp" claim timestamp check failed (Storage signed URL) Supabase StorageThe signed URL has expired; store the file path and create a fresh signed URL each time you show the file
Fix: Supabase Storage file links broken: private bucket, getPublicUrl and expired signed URLs โ
IDOR / BOLA (API1:2023) / CWE-639 Security review / pentestChanging an id in the URL or request returns or changes another user's record; check ownership with RLS or on the server for every request
Fix: Changing the id in the URL shows other users' data (IDOR) โ
Cloudflare error 1001 / 1003 Custom domainDNS for the custom domain points at the wrong target
Fix: Lovable custom domain stuck on Verifying, SSL failing, or login broken after the switch โ
Content-Range: 0-999/* Supabase Data API response headerThe request hit the 1,000 row max rows cap; page with range() and order(), and get totals with count instead of data.length
Fix: Supabase only returns 1,000 rows (max rows limit) โ
UNAUTHORIZED_NO_AUTH_HEADER Supabase Edge Functions (sb-error-code header)verify_jwt is on and the request had no Authorization or apikey header; the check passes with any public key, so authorize the user in code too
Fix: Supabase Edge Function callable by anyone (the anon key passes verify_jwt) โ
UNAUTHORIZED_INVALID_JWT_FORMAT Supabase Edge Functions (sb-error-code header)Authorization is not 'Bearer <JWT>'; send sb_publishable_/sb_secret_ keys in the apikey header and user tokens in Authorization
Fix: Supabase Edge Function callable by anyone (the anon key passes verify_jwt) โ
UNAUTHORIZED_LEGACY_JWT / UNAUTHORIZED_ASYMMETRIC_JWT Supabase Edge Functions (sb-error-code header)The Bearer token is invalid or expired (legacy HS256 or new ES256/RS256 signing keys); refresh the session or check the JWT secret was not revoked
Fix: Supabase Edge Function callable by anyone (the anon key passes verify_jwt) โ
Not listed? Search all fixes by pasting words from your error.
Get one new fix a week
Free newsletter: the newest breakages in Lovable, Bolt, Cursor, Replit and v0 apps, with paste-in fixes.
We only use your email to send the newsletter. Unsubscribe any time. See privacy.