On this page
When your app hits an error, Swarmz can usually fix it for you. Click Fix with AI, or tell Swarmz exactly what you see. If a recent change caused it, you can also go back.
1. Click Fix with AI#
When something on the page breaks, a card appears over the preview: Something broke on this page, with the error and where it came from (a build error, a page error, a database request or a backend function).
- Fix with AI (or press F) sends the error to Swarmz. The chat shows Swarmz is fixing it while it works, then Fixed once the preview proves the error is gone.
- Show details (or press L) opens every error on the page, with the request, the time and a Copy button.
When Swarmz caused the error itself, it fixes it on its own: the chat says Swarmz spotted an issue and is fixing it, and there is nothing for you to do.
If Swarmz cannot fix it, the card says Couldn't fix it automatically. Go on to the next steps. The close button hides a card you do not need.
Note
If your app's backend was idle, the first request wakes it. Errors from that moment wait until it answers, so you only see a card for an error that is still there.
2. Tell Swarmz what happened#
A good report has three parts: what you did, what you expected and what you saw. Paste any error message exactly as it appears.
When I click "Book now" on the treatments page nothing happens. I expected the booking form to open. The preview shows this error: "TypeError: Cannot read properties of undefined (reading 'map')". Please find the cause and fix it. Do not change anything else.
A screenshot helps too. Attach one with the + menu. See Add images and files to a prompt.
3. Look at the logs#
For problems with data, sign-in, emails or server functions, open Tools › Cloud › Logs to see what your app's backend recorded. Copy the relevant lines into your message to Swarmz.
4. Go back to a version that worked#
If the error started right after a change, restore the version before it. This is often quicker than asking for a repair. See Restore an earlier version or press Revert to this version under the earlier reply.
5. Ask Swarmz to test it#
Open the preview, go through the sign-up form like a visitor at phone size, and tell me exactly where it fails.
Swarmz can click and type through your app and report what it finds, which gives it more to work with.
Errors Swarmz shows in the chat#
| Message | What to do |
|---|---|
| Something went wrong | The request stopped before it finished. Your work is saved. Press Retry. |
| A step may not have finished | It was not repeated automatically. Check your files or preview, then continue. |
| A message about the AI being busy | Press Retry. Your progress is saved. |
| The workspace had trouble starting | Press Retry. Your prompt is saved. |
| Credit limit reached or Out of credits | See I ran out of credits. |
Good to know#
Tip
If Swarmz fixes the same thing twice and it comes back, stop asking for repairs. Revert, then ask again with a smaller, more specific request.
- Try one fix at a time. Several overlapping repairs can make things worse.
- If the preview is blank, see The preview is blank or won't load.
- If publishing fails, see Publishing failed.
Common questions#
Does fixing an error cost credits?
Yes. A repair is a normal request, so it uses credits like any other change. A clear description usually means fewer attempts.
It says Fixed but the problem is still there.
Refresh the preview and try the same steps. If it persists, describe exactly what is still wrong.
Where is the error on my page?
Open the page in the preview and look for the red error card. If you see nothing, ask Swarmz to open the page and look for errors.
Was this helpful?
Related articles
The preview is blank or won't load
Fix a white screen, a sleeping project or a preview that will not open, in order of likelihood.The AI changed the wrong thing
How to undo an unwanted change and word your next request so Swarmz edits only what you mean.Restore an earlier version
Every change Swarmz makes is saved as a version. Preview any version live and restore it in one click.In Building with SwarmzExample prompts for common features
Copy and adapt ready-made prompts for pages, forms, sign-in, data, files, email, AI features and fixes.In Building with Swarmz
Still have a question?
Ask about this article, or talk to a person.