Built an app with AI and now it’s not working? Start here
Last reviewed 25 November 2026
You built it with an AI tool, it worked, and now it doesn’t. Maybe it’s a blank screen, a sign-in that fails, or data that won’t save, and every new prompt seems to make it worse. Here’s where to look first, whichever tool you used.
Stop prompting and save a copy of your code and data. Check the tool’s status page, then work out whether only the preview is broken or the live app too. Read the exact error, go back to the last version that worked, and check the usual causes: missing keys, database access rules, sign-in addresses and usage limits. Change one thing at a time.
Rather talk it through with someone? Tell us what’s broken →
First: stop and save a copy
One prompt can change several files at once. Before you send another, protect what you have.
- Save the code. Connect the project to GitHub or download it. We cover how for Lovable, Bolt, Replit and Base44.
- Save the data. If real people use the app, export the database first. Going back to an older version of the code doesn’t always bring the data back. In Lovable, for example, reverting restores the code, not what’s in your database.
- Write down what changed. The last prompt, setting or service you touched before it broke is your best clue.
Is it the tool, or your app?
Sometimes nothing is wrong with your app at all. Check the status page for the tool you built with, and for the services your app runs on:
- AI builders: Lovable, Bolt, Base44 and Google AI Studio.
- Services many AI-built apps use: Supabase for the database and sign-in, Vercel for hosting, and OpenAI or Claude for AI features.
If the editor itself won’t load, try a hard refresh, a private window, or turning off browser extensions. If it works in a private window, the problem is probably your browser, not your app.
Preview or live: which one is broken?
AI builders usually keep two versions of your app: the preview you edit, and the live app your customers use. They can behave differently.
- Preview broken, live app fine. Your customers aren’t affected yet. A recent change broke the draft, so go back to the last working version before you publish anything. In Base44, for example, the live app only changes when you publish.
- Preview fine, live app broken. Your latest changes may not be published, or the live app uses different settings. On Replit, for example, the published app has its own production database, separate from the one the editor uses.
- Both broken. Look at what they share: the database, sign-in and outside services such as payments and email.
Read the real error
“It’s broken” gives the AI nothing to work with. The exact error message does. Look in three places:
- The browser console. In Chrome, right-click the page, choose Inspect, then open the Console tab. Copy the first red error, not the last one.
- The tool’s logs. Most AI builders have a logs view. Lovable’s, for example, covers server functions, the database and sign-in.
- Each service’s own dashboard. Your database, payment and AI providers keep their own logs of failed requests.
Paste the exact error into your prompt, with what you did, what you expected and what happened instead.
What it usually means
| What you see | Usually points to | Try first |
|---|---|---|
| Blank white screen | A code error while the page loads | Copy the first red error from the console, then go back to the last working version |
| Works in preview, not on the live site | Changes not published, or keys and settings missing on the live app | Publish, then check the live app has every key and setting the preview has |
| Sign-in fails, loops or lands on the wrong page | The live address isn’t in the allowed sign-in addresses | Add the live address, and your own domain, to the sign-in settings. Lovable example: sign-in not working |
| Lists are empty, or saving fails with “permission denied” | Database access rules, often called row-level security | Fix the rule so each user can reach their own rows. Don’t switch the rules off. See fixing Supabase problems |
| Payments don’t complete, or orders don’t appear | Test keys on the live site, or payment events that don’t reach your app | See fixing Stripe checkout and webhooks |
| Emails don’t arrive | The sending domain isn’t verified, or the email service’s key is missing | See emails not sending |
| AI features stop answering | No credit left, too many requests, a missing key or a retired model | Check the AI provider’s billing and usage pages, then its error logs |
| Your own domain shows an error | DNS records at your domain provider | See custom domain not working |
| Worked yesterday, broke after a prompt | The last change | Go back to the version before that prompt |
| Broke with no change at all | Something outside the code: an outage, a paused database, an expired key or used-up credit | Check the status pages and each service’s dashboard. On Lovable, also check your credits: running out pauses sign-in, the database and AI features |
When the AI features in your app stop working
If your app uses AI to write, chat or analyse, those features call an outside provider such as OpenAI, Anthropic or Google. They can fail for reasons that have nothing to do with your code:
- No credit left. If the account runs out of credit or hits its spending limit, requests fail. Check billing first.
- Too many requests. Providers limit how many requests you can send in a given time, and a busy day can hit that limit.
- A retired model. Providers retire older models, and an app that still asks for one stops getting answers. OpenAI lists its shutdown dates on its deprecations page.
- A key in the wrong place. If the AI key sits in code that runs in the browser, anyone can copy it and use up your credit. It belongs in a server function or the tool’s secrets.
Get out of the fix loop
Asking “fix it” again and again piles new guesses on top of the old problem. Some people call this debugging decay. Try this instead:
- Ask it to explain before it changes anything. For example: “Don’t change any code yet. Tell me why the save button does nothing.”
- After two failed attempts, go back to the last working version and try again with a clearer prompt.
- Make one change at a time, and test it before you ask for the next.
- Tell it what you’ve already tried, so it doesn’t repeat the same idea.
- Start a fresh chat if the thread is very long, with a short summary of the problem and the exact error.
Don’t make it worse
- Don’t switch off security to make an error go away. Turning off database access rules can make the error vanish, because the data is then open to anyone.
- Don’t paste secret keys into the chat. Put them in the tool’s secrets settings. If one has leaked, replace it.
- Don’t delete the project and start again until you have your own copy of the code and the data.
- Don’t let the AI “clean up” the database of a live app without a backup.
Before real customers arrive, run through our security checklist for AI-built apps.
Guides for the tool you used
- Lovable: Lovable app not working, and Lovable app not deploying if it won’t publish.
- Bolt: Bolt.new not working.
- Replit: Replit app not working.
- Base44: Base44 not working.
- Code written with Cursor, Claude Code or ChatGPT: if the project is in Git, a developer can see exactly what changed between the last working version and now, and undo just that. If it isn’t in Git yet, put it there before the next change.
- Heading for the App Store or Google Play: putting an AI-built app on the App Store.
When to stop prompting and get help
Bring in a developer when:
- real customers or payments are affected;
- data has gone missing, or you can’t tell which database the live app uses;
- the same bug keeps coming back after every fix;
- you’re spending more time and credits on fixes than on your product;
- you’re about to launch and nobody has checked the security.
A developer who reads the code and the logs works from the cause, not from guesses. See how we make AI-built apps ready for real customers, or, if you want someone to take the whole app over, app rescue.
Questions founders ask
Do I have to start again?
Not usually. Keep a copy of the code and the data before you decide anything. A version that worked a few days ago, plus a list of what changed since, is often enough to get going again.
Why does the AI say it’s fixed when it isn’t?
“Fixed” means the AI changed something. It doesn’t prove the problem has gone. Test each fix yourself, and give it the exact error instead of “it’s still broken”.
My app broke and I didn’t change anything. How?
Something outside the code changed. The tool or a service it uses may have an outage, a free database may have been paused for low activity, an API key may have expired or run out of credit, or a provider may have retired the AI model your app asks for. On Lovable, running out of workspace credits pauses sign-in, the database and AI features while the pages still load.
Is it safe to paste my keys into the chat to fix it?
No. Keep secret keys in the tool’s secrets settings, never in a prompt, a screenshot or the code. If a key has ended up somewhere public, create a new one and delete the old one.
Read next
- Lovable app not working? How to fix it and get unstuck
- Bolt.new not working? How to fix it and get unstuck
- Replit app not working? Fixing preview and publishing problems
- Base44 not working? How to fix errors and publish safely
- Is your AI-built app safe to launch? A security checklist
- Can you put a Lovable or other AI-built app on the App Store?
- All founder guides