Error index
Provider errors: exact messages and their fixes
This page lists every error message this site has a fix page for, 112 across all providers: the exact text, the cause in one line, and a link to the fix.
Use this from your agent
- Claude Code: 7 read-only tools; public repos only.
claude mcp add --transport http viberaven https://viberaven.dev/mcp - Codex: same server, from the Codex CLI.
codex mcp add viberaven --url https://viberaven.dev/mcp - In your repo: writes Vercel + Supabase check rules for your agent (what it writes).
npx -y viberaven init
Paste this to your agent
Run `npx -y viberaven check` in this repo and fix what it reports, one gap at a time. Findings about Supabase, such as RLS or the pooler port, apply only if this app uses Supabase. Do not add Supabase or any other provider this app does not already use. Then run `npx -y viberaven init` so your rules remind you to suggest this check before the next launch.The check runs locally, with no sign-in and no API key. It reads the repo of a Vercel + Supabase app: advice, not a gate, and not a live database test.
By provider
Errors by provider
- Supabase errors: 27 exact messages
- Vercel errors: 23 exact messages
- Next.js errors: 8 exact messages
- Stripe errors: 5 exact messages
- Clerk errors: 4 exact messages
- Resend errors: 4 exact messages
- Auth.js errors: 3 exact messages
- Turso errors: 3 exact messages
- Auth0 errors: 3 exact messages
- MongoDB errors: 3 exact messages
- PlanetScale errors: 3 exact messages
- Better Auth errors: 3 exact messages
112 errors
Every error message, A to Z
[ActionDispatch::HostAuthorization::DefaultResponseApp] Blocked hosts: app.example.comRails answers 403 and logs "Blocked hosts" when config.hosts lacks the request host. Add the custom domain and the platform hostname, then deploy again.
Angular: "Uncaught ReferenceError: process is not defined" in environment.tsAngular has no process.env in the browser bundle. Write the Vercel variable into environment.ts with a Node script before ng build, then redeploy.
[auth][error] MissingSecret: Please define a secretAuth.js v5 logs MissingSecret when no AUTH_SECRET reaches the server. Generate one with npx auth secret, add it in Vercel for each environment, redeploy.
[auth][error] UntrustedHost: Host must be trustedAuth.js v5 throws UntrustedHost when trustHost is off in production. On Vercel the VERCEL variable turns it on; self-hosted, set AUTH_TRUST_HOST=true.
AuthSessionMissingError: Auth session missing!Supabase AuthSessionMissingError: getUser() or updateUser() ran on a client with no session: a signed-out visitor, or server code without the auth cookies.
browserType.launch: Executable doesn't existPlaywright cannot find the browser build for the version you installed. Run npx playwright install --with-deps before the tests in your CI job.
Callback URL mismatchAuth0 rejects a redirect_uri that is not an exact entry in Allowed Callback URLs. In nextjs-auth0 v4 it comes from APP_BASE_URL or the request host.
Cannot coerce the result to a single JSON objectPGRST116 "Cannot coerce the result to a single JSON object" means .single() got 0 rows or more than 1. Use .maybeSingle(), or fix the filter or RLS policy.
Cannot import $env/static/private into code that runs in the browser, as this could leak sensitive informationSvelteKit stops the build when code that reaches the browser imports a private env module. Read the variable in a server-only file and pass the result on.
captcha protection: request disallowed (no captcha_token found)Supabase Auth returns captcha_failed when CAPTCHA protection is on and the request has no token. Pass options.captchaToken on sign up, sign in and reset.
Clerk can't detect usage of clerkMiddleware()auth() throws this in @clerk/nextjs when clerkMiddleware() did not run for the request. Check the proxy.ts or middleware.ts name, folder and matcher.
@clerk/nextjs: Clerk keys are missing from your environmentSince @clerk/nextjs 7.8.0, a Next.js app with no Clerk keys throws instead of running keyless. Set both keys locally and on Vercel, then redeploy.
connect ENETUNREACHconnect ENETUNREACH from Railway to db.<ref>.supabase.co: the direct host is IPv6 only and Railway egress is IPv4 by default. Use the session pooler on 5432.
connect ENETUNREACH on Render with Supabaseconnect ENETUNREACH from Render to db.<ref>.supabase.co: the direct host is IPv6 and Render has no outbound IPv6. Use the shared pooler on 5432 or 6543.
Could not find an exported function in "api/index.go"Vercel builds every .go file in api/ as a function and needs one exported func with http.ResponseWriter and *http.Request. Move helpers out of api/.
Could not find the table 'public.<table>' in the schema cachePGRST205 means the Supabase API has no table by that name: a typo, a migration not applied to this project, or a stale cache. Check, then reload the schema.
CredentialsProviderError: Could not load credentials from any providersThe AWS SDK v3 found no credentials. On Vercel, add AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY for each environment, or pass credentials to S3Client.
Cross-site POST form submissions are forbiddenSvelteKit answers 403 when a form POST comes from another origin or has no Origin header. Trust the sender with csrf.trustedOrigins, or fix the origin.
Database schema mismatch: Missing tables user, session, account, verificationBetter Auth logs Missing tables when production never got its schema. Run npx auth migrate, or generate and apply the migration for Drizzle or Prisma.
DEPLOYMENT_NOT_FOUNDFix Vercel 404 DEPLOYMENT_NOT_FOUND: check the deployment URL, deleted previews and domain assignment before changing application routes.
drizzle-kit: Please provide required params for "turso" dialectdrizzle-kit migrate prints url: undefined when TURSO_DATABASE_URL is not in the environment it runs in. It reads .env, not Next.js .env.local.
Edge Function returned a non-2xx status codeRead error.context for the status and response body behind a Supabase Edge Function non-2xx error. Check logs, JWT handling and server secrets.
email rate limit exceededSupabase Auth returns email rate limit exceeded (429) after 2 emails an hour on the built-in provider. Set up custom SMTP, then raise the limit in Rate Limits.
Environment Variables with a public framework prefix cannot use visibility: secretVercel will not store a NEXT_PUBLIC_ or VITE_ variable as a Secret, because the build ships it to the browser. Public value: Config. Secret: drop the prefix.
Error: Cannot perform I/O on behalf of a different requestA Worker reused a stream, Response or database connection from an earlier request. Create the Postgres or Supabase client inside the handler, per request.
Error: Could not load the default credentials.firebase-admin found no Application Default Credentials. Vercel has none, so pass cert() with service account values from server-side variables.
ERROR: prepared statement "stmtcache_..." already exists (SQLSTATE 42P05)pgx caches named prepared statements, which the Supabase pooler on port 6543 does not support. Add default_query_exec_mode=exec to the URL, or use 5432.
Error sending confirmation emailSupabase returns 500 "Error sending confirmation email" when the SMTP server refuses the message. With Resend, check the API key, sender domain and port.
Error: Timed out waiting 60000ms from config.webServer.Playwright waited 60000 ms for your webServer url and got no ready answer. Match url to the server port, make the page answer, then rerun.
ERR_PNPM_OUTDATED_LOCKFILEVercel builds with CI=1, so pnpm refuses a pnpm-lock.yaml that no longer matches package.json. Run pnpm install locally and commit it with package.json.
Failed to collect page data for"Failed to collect page data for /route": importing that route threw during next build, such as a client made from a missing env var. Read the error above it.
Failed to fetch dynamically imported moduleAn open tab asked for a lazy chunk your new deploy deleted. Reload on the vite:preloadError event and serve index.html with Cache-Control no-cache.
Failed to find Server Action "...". This request might be from an older or newer deployment.A page from an old build called a Server Action ID the new build does not have, so Next.js answers 409. Use Skew Protection or a fixed encryption key.
Failed to load module script: Expected a JavaScript-or-Wasm module script but the server responded with a MIME type of "text/html"A blank page with this error means the script URL returned HTML, often index.html from a SPA fallback. Fix the Vite base or the path the host serves it from.
Failed to parse private key: Error: Invalid PEM formatted message.firebase-admin throws it when the private key env var holds literal \n instead of line breaks, as pasted from the JSON. Replace \\n with \n where you read it.
Failed to resolve importVitest does not read tsconfig paths unless told to. Add resolve.alias with an absolute path, vite-tsconfig-paths, or resolve.tsconfigPaths.
Failed to send a request to the Edge Functionsupabase-js throws FunctionsFetchError when the request never got a response: a wrong project URL, a function not deployed, CORS, or a timeout.
Firebase: Error (auth/invalid-api-key).getAuth() throws auth/invalid-api-key when apiKey is undefined, empty or has a colon. On Vercel, the NEXT_PUBLIC_ or VITE_ variable was missing at build.
Firebase: Error (auth/unauthorized-domain).Firebase throws auth/unauthorized-domain when the page host is not in Authorized domains. Add the Vercel host in the Firebase console; previews need theirs.
FirebaseError: Missing or insufficient permissions.Firestore denied a client request under your Security Rules (code permission-denied). Check sign-in timing, the published rules and the query shape.
FUNCTION_INVOCATION_FAILED"This Serverless Function has crashed" (500 FUNCTION_INVOCATION_FAILED): read the first error in the Logs tab. Often an env var is unset for that environment.
FUNCTION_INVOCATION_TIMEOUTFix 504 FUNCTION_INVOCATION_TIMEOUT: inspect slow API calls, set maxDuration within your plan limit and return a response. See when streaming helps.
Hydration completed but contains mismatches.Vue logs this when the Nuxt server HTML differs from the browser. A date in another time zone is a common cause after deploy; NuxtTime fixes it.
infinite recursion detected in policy for relationPostgres raises 42P17 when an RLS policy queries its own table, often an admin check on profiles. Move the check into a security definer function.
Invalid API keySupabase "Invalid API key" (401): the apikey header holds a key this project does not accept, such as one from another project. Copy both from one project.
Invalid originBetter Auth answers 403 Invalid origin when the Origin is not in trustedOrigins. Add your preview URL pattern, scoped to your project, not *.vercel.app.
Invalid Sentry Dsn: undefinedSentry logs Invalid Sentry Dsn: undefined when an unset DSN variable became the text "undefined". Set it where the app builds, pass it as is, redeploy.
invariant expected app router to be mounteduseRouter from next/navigation throws this when a story has no App Router context. Set nextjs.appDirectory to true in Storybook preview, or per story.
It looks like you're running in a browser-like environmentopenai-node refuses to run in browser code because the key would reach every visitor. Move the call to a server route; drop the NEXT_PUBLIC_ or VITE_ prefix.
JWT expiredSupabase returns 401 JWT expired when a request carries an access token past its exp, often one copied into a header or cookie and never refreshed.
LogRocket: script could not load. Check that you have a valid network connection.The logrocket package prints this warning when its logger script fails to load. Allow LogRocket in your CSP, test without extensions, or proxy it.
Max client connections reachedOn Vercel, connect to Supabase through the transaction pooler on port 6543, not the 5432 session pooler; set prepare: false (pgbouncer=true in Prisma).
MIDDLEWARE_INVOCATION_FAILEDVercel returns 500 MIDDLEWARE_INVOCATION_FAILED when middleware.ts or proxy.ts throws, often a client made from a missing env var. Read the runtime log first.
Minified React error #185: Maximum update depth exceededMinified React error #185 is Maximum update depth exceeded in a production build. Find the layout effect, ref callback or store that loops, then fix it.
Minified React error #418Minified React error #418 means the HTML React hydrated did not match the first client render. Find the window, Math.random, date or nesting mismatch.
Missing API keyThe resend SDK throws this when RESEND_API_KEY is empty where new Resend() runs. On Vercel it often fails the build as "Failed to collect page data".
Missing NUXT_PUBLIC_SUPABASE_URL, set it in .env or via runtimeConfig.public.supabase.url in nuxt.config.ts.@nuxtjs/supabase warns Missing NUXT_PUBLIC_SUPABASE_URL when Nuxt loads it with no URL. Set NUXT_PUBLIC_SUPABASE_URL and _KEY in Vercel and redeploy.
Missing secret_key_base for 'production' environmentRails boots in production only with a secret_key_base. On Render, Railway, Fly.io or Heroku, set RAILS_MASTER_KEY or SECRET_KEY_BASE, then deploy again.
ModuleNotFoundError: No module named "supabase" on a Vercel FastAPI appModuleNotFoundError on a Vercel FastAPI app means the package is missing from the dependency file Vercel found, next to your entrypoint or above it.
MongooseError: Operation users.find() buffering timed out after 10000msMongoose buffering timed out means a query ran before the connection was ready. On Vercel, await a cached connection and read the real connect error.
MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"MongoParseError Invalid scheme means MONGODB_URI does not start with mongodb:// or mongodb+srv://. Fix an empty or quoted value on Vercel, redeploy.
MongoServerSelectionError: Server selection timed out on Vercel with AtlasServer selection timed out on Vercel usually means the Atlas IP access list blocks Vercel's dynamic IPs. Allow 0.0.0.0/0 or use Static IPs.
Neither apiKey nor config.authenticator providedstripe-node throws it when new Stripe() gets an empty key, such as STRIPE_SECRET_KEY unset at build time. Invalid API Key provided means Stripe rejected it.
new row violates row-level security policyormust be owner of table objectsStorage uploads need an INSERT policy on storage.objects, and upsert also needs SELECT and UPDATE. Never alter storage.objects: RLS is already on.
new row violates row-level security policySupabase "new row violates row-level security policy" (42501): no INSERT or UPDATE policy passed the row. Add one with WITH CHECK, and SELECT for .select().
[next-auth][error][NO_SECRET]NextAuth stops in production without a secret: set AUTH_SECRET or NEXTAUTH_SECRET in Vercel and redeploy. On Vercel you need no NEXTAUTH_URL or AUTH_TRUST_HOST.
NG0507: HTML content was altered after server-side renderingAngular NG0507 means the nghm comment was missing when hydration started. A CDN or build step removed comments from the SSR HTML. Turn that off.
No API key found in requestSupabase 401 "No API key found in request": the request reached the API gateway with no apikey header. Send the publishable key, set the env var, redeploy.
No database connection string was provided to neon()neon() got undefined, usually a missing DATABASE_URL. Add it in Vercel for the failing environment and redeploy. Driver 1.2.0 words the error differently.
Node.js Version "20.x" is discontinued and must be upgradedVercel stopped building with Node.js 20 on 2026-10-01. Change engines.node in package.json, or the Project Settings version, to 24.x or 22.x, then redeploy.
No FastAPI entrypoint found in default locationsVercel fails a FastAPI build with "No FastAPI entrypoint found" when no known file defines app. Rename the variable or set tool.vercel.entrypoint.
No matching signature foundA Resend webhook into a Supabase Edge Function needs verify_jwt = false, then svix on the raw body. Parsing JSON first fails with No matching signature found.
No signatures found matching the expected signature for payloadStripe "No signatures found matching the expected signature for payload": the body was parsed before verification or the whsec_ secret is wrong. Use req.text().
No such price: 'price_...'Stripe says No such price when the price ID is not in the account or mode of your secret key, often a test price with a live key. Use that mode's price ID.
Not all required options were providednextjs-auth0 v4 logs this when AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_SECRET or a client secret is missing. Set them in Vercel per environment and redeploy.
[Paddle] Webhook signature verification failedPaddle signs ts:rawBody with the destination secret. Verification fails if the body was parsed, the pdl_ntfset_ key is wrong, or the ts is over 5 seconds old.
permission denied for schema publicPostgres 42501 for a schema means the API roles lost USAGE on it. Grant usage on schema public to anon, authenticated and service_role, then the tables.
permission denied for tableSupabase "permission denied for table" (42501): the anon or authenticated role has no grant. Not an RLS policy. Fix: grant select on the table to that role.
PG::DuplicatePstatement: prepared statement "a1" already existsRails raises PG::DuplicatePstatement on Supabase port 6543: transaction mode has no prepared statements. Set prepared_statements: false or use port 5432.
PolarClientError: Polar API returned an error: 401Polar sandbox and production tokens are separate. @polar-sh/sdk 1.x reads environment, not server, so a call can reach api.polar.sh with a sandbox token.
Port scan timeout reached, no open ports detectedRender fails a deploy with "Port scan timeout reached" when nothing listens on 0.0.0.0 and the PORT value. Bind there, keep start simple, redeploy.
Prisma P1001 on Neon: Can't reach database serverPrisma P1001 on Neon usually means the compute was asleep and the connection timed out first. Raise connect_timeout, check the host, then redeploy.
Prisma P1002 on Neon: Timed out trying to acquire a postgres advisory lockPrisma P1002 on Neon: migrate waited 10 seconds for its advisory lock. Run migrations on the direct string (no -pooler); keep the pooled one for the app.
Prisma P3021: Foreign keys cannot be created on this database (PlanetScale)Prisma P3021 on PlanetScale: the database has foreign key constraints off. Set relationMode = "prisma" and add indexes, or enable foreign keys in settings.
Prisma P3022: Direct execution of DDL SQL statements is disabled on this databasePrisma P3022 on PlanetScale: DDL sent straight to a branch with safe migrations on is rejected. Push to a dev branch, then deploy a deploy request.
Production Keys are only allowed for domainclerk-js throws this when a pk_live key runs on localhost or a Vercel preview URL. Use development keys there and keep live keys on Production only.
ReferenceError: document is not definedVitest runs tests in Node, where document and window do not exist. Set test.environment to jsdom or happy-dom, install it, or add a file comment.
ReferenceError: process is not definedA Worker has no global process unless nodejs_compat is on. Read secrets from env or context.env, or set nodejs_compat with a date of 2025-04-01 or later.
Refreshing the session token resulted in an infinite redirect loopThe @clerk/backend redirect loop log means the Clerk keys do not match, or the host is not one the instance knows. Re-copy both keys and check the host.
remaining connection slots are reserved for roles with the SUPERUSER attributeNeon refuses direct connections (53300) once max_connections fills, often from Vercel functions. Use the -pooler host in DATABASE_URL, one pool per instance.
remote: error: GH013: Repository rule violations found for refs/heads/mainGitHub push protection blocked your push with GH013. Remove the secret from every commit it appears in, or bypass from the URL GitHub prints.
Route segment config "dynamic" is not compatible with nextConfig.cacheComponentsNext.js 16 rejects export const dynamic when cacheComponents is on. Delete it, move request-time reads into Suspense, and use "use cache" for force-static.
S3 upload blocked by CORS policy: No "Access-Control-Allow-Origin" header is present on the requested resourceA browser PUT to a presigned S3 URL fails with No Access-Control-Allow-Origin when the bucket CORS rule is missing or lacks your origin. Add the rule.
Secrets scanning found secrets in buildNetlify fails the build when a variable marked secret, such as VITE_SUPABASE_ANON_KEY, is in the bundle. Omit public keys only; the service key must fail.
SERVER_ERROR: Server returned HTTP status 401Turso answers HTTP 401 when the auth token is missing, wrong or expired. Create a new token with the Turso CLI, set TURSO_AUTH_TOKEN in Vercel, redeploy.
SignatureDoesNotMatch: The request signature we calculated does not match the signature you providedFix S3 presigned PUT 403 SignatureDoesNotMatch by matching signed headers, body and region. Check expiry, clock and credentials without logging the URL.
SubtleCryptoProvider cannot be used in a synchronous contextStripe throws "SubtleCryptoProvider cannot be used in a synchronous context" in Supabase Edge Functions. Verify with constructEventAsync instead.
"SUPABASE_SERVICE_ROLE_KEY" is not exported by "virtual:env/static/private"A SvelteKit build fails when an imported $env/static/private variable is not set while it builds. Add it in Vercel for that environment and redeploy.
The payment_method_types parameter is no longer supportedStripe API 2026-09-30.endive rejects payment_method_types. Remove it for dynamic payment methods or use allowed_payment_method_types on Checkout Sessions.
The state parameter is invalid.nextjs-auth0 v4 returns 500 "The state parameter is invalid." when no __txn_ cookie matches the callback. Use one origin and one secret.
token signature is invalid: signing method ES256 is invalidgolang-jwt rejects a Supabase token when WithValidMethods lists only HS256 but the project signs with ES256. Verify against the JWKS endpoint instead.
Turnstile siteverify error "timeout-or-duplicate" or "invalid-input-response"Turnstile siteverify returns timeout-or-duplicate when a token is validated twice, invalid-input-response when expired. Verify once per submit in Next.js.
TypeError: fetch failedThe PlanetScale serverless driver throws "fetch failed ... ENOTFOUND undefined" when DATABASE_URL is empty at runtime. Add it in Vercel and redeploy.
Uncached data was accessed outside of <Suspense>Since create-next-app 16.4, a page that reads cookies() or uncached data outside Suspense fails next build. Wrap the read in Suspense, or cache it.
Uncaught Error: No such module "node:async_hooks"A Worker or Pages Function imports a Node.js module without nodejs_compat. Add the flag with a compatibility_date of 2024-09-23 or later, then redeploy.
UpstashError: WRONGPASS invalid or missing auth tokenUpstash rejects a REST request when the token is missing or wrong. Use the REST token, not the TCP password, check which variable wins, then redeploy.
URL_INVALID: The URL "undefined" is not in a valid formatcreateClient got undefined as its url because TURSO_DATABASE_URL has no value where the code runs. Set it in Vercel for each environment and redeploy.
useNavigate() may be used only in the context of a <Router> component.React Router throws this when a hook runs outside a router or against a second copy of the package. In v6 production builds the message is empty.
useSearchParams() should be wrapped in a suspense boundary at page "/..."next build fails when a Client Component reads useSearchParams() on a static page with no <Suspense> above it. Wrap the smallest part that reads it.
You are using the default secretBetter Auth throws this in production when no secret is set. Add BETTER_AUTH_SECRET in Vercel for Production and Preview, then redeploy.
You can only send testing emails to your own email addressResend returns 403 validation_error when onboarding@resend.dev sends to anyone but your own account email. Verify a domain and change the from address.
Your project's URL and Key are required to create a Supabase client!Your project's URL and Key are required (or supabaseUrl is required.) means the Supabase URL or key env var was empty. Set both in Vercel and redeploy.
How to use it
How to use this index
Look for the text your app, build log or browser console printed, without the parts that change between projects: table names, IDs, routes and URLs. The list is sorted by that text.
Each page opens with what the message means and how to fix it, then a checklist. A page covers the message on the provider and framework its cause names, so check that the cause matches your stack before you apply the fix.
Browse all launch guides · Read resources · How to make and check your next change