#18 most commonruntime/UILovableBolt.newCursorReplitv0Windsurf

TypeError: Failed to fetch / NetworkError

TypeError: Failed to fetch / NetworkError when attempting to fetch resource / net::ERR_NAME_NOT_RESOLVED

Got a slightly different error? Paste the exact message and get a fix prompt tailored to it.

Paste your error →

What it means

Your app tried to call a server and never got an answer. The address could be wrong, the server could be off or paused, or the browser blocked the request (often a CORS problem).

How to fix it: paste this prompt into your AI builder

Fix prompt for Lovable, Bolt, Cursor, Replit, v0, Windsurf
My app shows "Failed to fetch". Find the exact request that fails (URL and method) and check: is the URL correct for production (not localhost), does it use https, is the backend/edge function deployed and running, are env vars for the URL set, and is it actually a CORS block (check the console for 'CORS'). Add a clear error message in the UI for failed requests. Fix the root cause only; do not restructure the data layer.

If the AI can't fix it: manual steps

  1. Open DevTools, go to the Network tab, retry, and click the red request to see its URL and status.
  2. If you use Supabase on the free plan, check whether the project was paused for inactivity and restore it in the Supabase dashboard.

Where this happens

Seen in these AI app builders and editors:

LovableBolt.newCursorReplitv0Windsurf

Sources

Related runtime/UI errors

Still stuck? Paste your full error and UnstuckMyVibe will match it and hand you the exact fix prompt.

Fix my error →