# Error code lookup

> Canonical page: https://unbreakmyapp.vercel.app/errors.html

Match an exact error code or message to its fix page.

- `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: https://unbreakmyapp.vercel.app/fixes/supabase-single-json-object-requested-no-rows-pgrst116.html
- `42501 new row violates row-level security policy` (Supabase / Postgres): An INSERT or UPDATE was blocked by an RLS policy WITH CHECK. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-rls-new-row-violates-policy.html
- `42501 permission denied for table` (Supabase / Postgres): The anon or authenticated role has no GRANT on the table. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-permission-denied-for-table.html
- `42P01 relation does not exist` (Supabase / Postgres): The table is missing, misspelled or in another schema. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-relation-does-not-exist.html
- `data: [] with error: null` (Supabase): RLS hides the rows, so a select returns an empty list with no error. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-rls-empty-results.html
- `update() returns no error but nothing changes` (Supabase): RLS USING clause or missing SELECT policy means 0 rows were updated. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-update-saved-but-gone-after-refresh.html
- `53300 too many clients already` (Supabase / Postgres): Connection limit reached, usually serverless functions without the pooler. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-too-many-connections.html
- `FunctionsHttpError (non-2xx status code)` (Supabase Edge Functions): The Edge Function ran and returned 4xx or 5xx. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-edge-function-non-2xx-status-code.html
- `FunctionsFetchError` (Supabase Edge Functions): The request never reached the function, often CORS preflight. Fix: https://unbreakmyapp.vercel.app/fixes/lovable-supabase-edge-function-cors.html
- `StorageApiError 403 new row violates row-level security policy` (Supabase Storage): Missing storage.objects policy for the bucket. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-storage-upload-403.html
- `over_email_send_rate_limit (429)` (Supabase Auth): Built-in email sender limit hit, set up custom SMTP. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-auth-emails-not-sending.html
- `over_request_rate_limit (429)` (Supabase Auth): Too 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: https://unbreakmyapp.vercel.app/fixes/login-rate-limit-only-per-email-credential-stuffing.html
- `captcha_failed` (Supabase Auth): CAPTCHA protection is on but the sign-in, sign-up or reset call did not send a valid captchaToken. Fix: https://unbreakmyapp.vercel.app/fixes/login-rate-limit-only-per-email-credential-stuffing.html
- `Failed to fetch after inactivity` (Supabase): Free project paused for inactivity. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-project-paused-app-cant-connect.html
- `Error 400: redirect_uri_mismatch` (Google OAuth): Callback URL not listed in the OAuth client. Fix: https://unbreakmyapp.vercel.app/fixes/oauth-redirect-uri-mismatch.html
- `Redirect to http://localhost:3000 after login` (Supabase Auth): Site URL / redirect URLs still point at localhost. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-auth-redirect-localhost.html
- `StripeSignatureVerificationError` (Stripe): Webhook body parsed before verification or wrong whsec_ secret. Fix: https://unbreakmyapp.vercel.app/fixes/stripe-webhook-signature-failed.html
- `No such price: 'price_...' (resource_missing)` (Stripe): Test and live keys or IDs mixed up. Fix: https://unbreakmyapp.vercel.app/fixes/stripe-test-vs-live-keys.html
- `Your webhook endpoint is failing` (Stripe email): Live deliveries keep failing and the endpoint may be disabled. Fix: https://unbreakmyapp.vercel.app/fixes/stripe-webhook-failing-email-endpoint-will-be-disabled.html
- `404: NOT_FOUND on refresh` (Vercel): Single-page app route without a rewrite to index.html. Fix: https://unbreakmyapp.vercel.app/fixes/vercel-404-on-refresh-spa.html
- `Command "npm run build" exited with 1` (Vercel): Type or lint errors fail the production build. Fix: https://unbreakmyapp.vercel.app/fixes/vercel-build-failed-type-errors.html
- `Blocked by CORS policy` (Browser): The API does not send Access-Control-Allow-Origin for your domain. Fix: https://unbreakmyapp.vercel.app/fixes/cors-error-fetch-blocked.html
- `429 insufficient_quota / You exceeded your current quota` (OpenAI): Quota or billing limit hit, often from a runaway loop. Fix: https://unbreakmyapp.vercel.app/fixes/openai-429-rate-limit-runaway-bill.html
- `Too many re-renders / Maximum update depth exceeded` (React): State set during render or an effect with a changing dependency. Fix: https://unbreakmyapp.vercel.app/fixes/useeffect-infinite-loop.html
- `Hydration failed` (Next.js / React): Server HTML differs from the first client render. Fix: https://unbreakmyapp.vercel.app/fixes/nextjs-hydration-mismatch.html
- `550 5.7.26 unauthenticated email` (Gmail / email): SPF, DKIM or DMARC missing for the sending domain. Fix: https://unbreakmyapp.vercel.app/fixes/transactional-emails-going-to-spam-spf-dkim-dmarc.html
- `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: https://unbreakmyapp.vercel.app/fixes/better-auth-expo-account-takeover-below-1-7-16.html
- `Security Advisor 0007 policy_exists_rls_disabled` (Supabase lint): Policies exist but RLS is off, often an AI shortcut, so none are enforced. Fix: https://unbreakmyapp.vercel.app/fixes/ai-fix-disabled-rls-or-swapped-service-role.html
- `Security Advisor 0010 security_definer_view` (Supabase lint): A view runs with its creator's rights and bypasses RLS, so it can return every user's rows. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-view-bypasses-rls-security-invoker.html
- `Security Advisor 0002 auth_users_exposed` (Supabase lint): A public view reads auth.users and can expose every user's personal data. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-view-bypasses-rls-security-invoker.html
- `Security Advisor 0016 materialized_view_in_api` (Supabase lint): A materialized view is readable by anon or authenticated and cannot be protected by RLS. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-view-bypasses-rls-security-invoker.html
- `Privilege escalation: user can update own role, is_admin or plan` (Security review): An owner UPDATE policy lets any user set role = 'admin' or plan = 'pro' on their own row; RLS checks rows, not columns. Fix: https://unbreakmyapp.vercel.app/fixes/users-can-update-own-plan-or-role-column.html
- `auth.jwt() -> 'user_metadata' used in a policy` (Supabase Auth): user_metadata can be changed by the user with supabase.auth.updateUser(), so it must not grant roles or plans. Fix: https://unbreakmyapp.vercel.app/fixes/users-can-update-own-plan-or-role-column.html
- `Security Advisor 0013 rls_disabled_in_public` (Supabase lint): A table in the public schema has RLS disabled and is open to the anon key. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-rls-disabled-table-public.html
- `Security Advisor 0024 permissive_rls_policy` (Supabase lint): A policy uses true for its check, so any user can read or write. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-rls-policy-using-true-any-user-can-read.html
- `Detected potential conflicts, please review` (Replit Publish): Publish asks whether a removed column or table was renamed; answering create new drops the old one with its data. Fix: https://unbreakmyapp.vercel.app/fixes/replit-rollback-does-not-restore-database.html
- `Development database changes detected` (Replit Publish): Publish will apply dev schema changes to production; read the generated SQL and any orange data-loss warning first. Fix: https://unbreakmyapp.vercel.app/fixes/replit-rollback-does-not-restore-database.html
- `Lovable Quick scan: tables without row-level security, or access rules that let everyone through` (Lovable security scan): The database review found a table anyone can read with the public key; check whether customer data is exposed without login. Fix: https://unbreakmyapp.vercel.app/fixes/lovable-app-leaking-data-without-login-audit-checklist.html
- `401 Missing authorization header / Invalid JWT on a Stripe webhook` (Supabase Edge Functions): Stripe sends no Supabase JWT, so the default verify_jwt check rejects every delivery before your code runs. Fix: https://unbreakmyapp.vercel.app/fixes/stripe-webhook-401-supabase-edge-function-jwt-verification.html
- `Admin page or /admin route opens for a non-admin user (force browsing)` (Security review): Admin access is only checked in the frontend; anyone can open the URL or call the admin API directly. Fix: https://unbreakmyapp.vercel.app/fixes/admin-page-hidden-but-not-protected-server-side-check.html
- `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: https://unbreakmyapp.vercel.app/fixes/admin-page-hidden-but-not-protected-server-side-check.html
- `Content-Security-Policy (CSP) header not implemented` (Mozilla HTTP Observatory / security scan): The host sends no CSP; add one on the host, in report-only mode first. Fix: https://unbreakmyapp.vercel.app/fixes/missing-security-headers-csp-vercel-netlify.html
- `Refused to load the script because it violates the following Content Security Policy directive` (Browser console): A 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: https://unbreakmyapp.vercel.app/fixes/missing-security-headers-csp-vercel-netlify.html
- `X-Frame-Options header not set / X-Content-Type-Options header missing` (Security scan): Clickjacking and MIME-sniffing protections are missing; add X-Frame-Options: DENY (or frame-ancestors) and nosniff on the host. Fix: https://unbreakmyapp.vercel.app/fixes/missing-security-headers-csp-vercel-netlify.html
- `502 Bad Gateway on the published replit.app URL after republishing` (Replit published app): The 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: https://unbreakmyapp.vercel.app/fixes/replit-publish-502-bad-gateway-after-republish.html
- `Publishing fails at the final Promote step (health check)` (Replit Publish): Replit'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: https://unbreakmyapp.vercel.app/fixes/replit-publish-502-bad-gateway-after-republish.html
- `Hard-coded credentials (CWE-798)` (Code scanner / security review): A password, test account or key is written into the code or bundle; remove it, delete the test account and rotate the secret. Fix: https://unbreakmyapp.vercel.app/fixes/preview-auto-login-hardcoded-credentials-left-in-production.html
- `Active debug code (CWE-489)` (Code scanner / security review): A 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: https://unbreakmyapp.vercel.app/fixes/preview-auto-login-hardcoded-credentials-left-in-production.html
- `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: https://unbreakmyapp.vercel.app/fixes/supabase-storage-private-bucket-file-url-broken-signed-url.html
- `InvalidJWT: "exp" claim timestamp check failed (Storage signed URL)` (Supabase Storage): The signed URL has expired; store the file path and create a fresh signed URL each time you show the file. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-storage-private-bucket-file-url-broken-signed-url.html
- `IDOR / BOLA (API1:2023) / CWE-639` (Security review / pentest): Changing 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: https://unbreakmyapp.vercel.app/fixes/change-id-in-url-see-other-users-data-idor.html
- `Cloudflare error 1001 / 1003` (Custom domain): DNS for the custom domain points at the wrong target. Fix: https://unbreakmyapp.vercel.app/fixes/lovable-custom-domain-stuck-verifying.html
- `Content-Range: 0-999/*` (Supabase Data API response header): The request hit the 1,000 row max rows cap; page with range() and order(), and get totals with count instead of data.length. Fix: https://unbreakmyapp.vercel.app/fixes/supabase-only-1000-rows-returned-max-rows.html
- `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: https://unbreakmyapp.vercel.app/fixes/edge-function-callable-by-anyone-anon-key-is-a-jwt.html
- `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: https://unbreakmyapp.vercel.app/fixes/edge-function-callable-by-anyone-anon-key-is-a-jwt.html
- `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: https://unbreakmyapp.vercel.app/fixes/edge-function-callable-by-anyone-anon-key-is-a-jwt.html

---
Unbreak My App: free fixes for broken vibe-coded apps. https://unbreakmyapp.vercel.app/
