Preview broken agent goes round in circles trying to fix eating my $$$$

So I’m building an app and it’s going well, it works when I’m developing it, however when I tap on the ‘Preview’ button after the agent has made an update, opening a new window, the app in preview mode is broken.

When I tell the agent this, it tries to make a bunch of changes but it looks like it doesn’t actually have access to the preview mode so it just guesses? It says it does a bunch of stuff, but it’s still broken, so again I tell it about the error message, goes off and adds more error handling etc but it’s still broken… all the while eating up my minutes off my $$$. I’m at the point now where I have stopped working on the app as it seems I’m asking it to fix a problem that in dev mode it can’t find?

I was wondering if maybe I should try publishing the app… but I don’t want it public yet, and does Google index it?

Here is the output from my agent preview fix loop:

What You’ll Notice:

  • No more generic 500 “Unknown server error” messages

  • Clear, specific error messages that tell you what went wrong

  • Better reliability in Preview environment

  • Proper error handling for file uploads, database connections, and validation

Next Step:
Please try creating assets in Preview mode now. You should see:

  • Successful asset creation when everything is correct

  • Clear, helpful error messages if something goes wrong (instead of generic 500 errors)

Try this, it worked for me. Open the preview window in a Private/Incognito window and see if it works. If it does, it’s your browser. Hard refresh did not work, clearing cache did not work, I had to reset chrome to default, and safari, only then did things start working as I had the same problem as you are describing.

Hi. Thanks for your response. No dice. It has something to do with saving the assets. Going to try publishing

So the app works when published. :man_shrugging:

LolOmgLolGIF