Constant loss of data

Is anyone else experiencing lots of effort and work being put in just to lose everything? I have literally been for almost 6 weeks now trying to do the same page. As I’m getting really close to finishing, out of nowhere everything is erased. Does anybody have any suggestions for this?

When you say “Lost everything” are you talking about all of your files or all of your database?

What do you mean?

1 Like

Sorry I should have worded better. I’m finding myself stuck in a constant loop of getting all of my data ready and everything looking real sharp and then I walk away for an hour or two and come back, the whole site is wiped out. At least all the data I had just completed.Some things stay the same, but the majority of the structure to content has been wiped.I Even notice small differences like color changes or things moved around that I didn’t do.. Hopefully that clarifies better. And thank you for responding

1 Like

ok so we are talking database it seems.

That is tricky indeed.

Do you have any of the following.

onSnap listeners
Any code that deletes data, like a delete user or anything else
any extensions like user data delete

I do not but I will definitely look into that, thank you very much for the suggestion. I’m willing to try a lot of stuff to make it work.

1 Like

Please keep me updated. I will try to poke my head in here to assist where i can.

Also are you using firestore or realtime database?

It is very odd to happen if you have nothing deleting the database.

Now i will say, i have had issues in the past but mine was different, the entire database was being wiped off the face of the earth and support was unfortunately no help, could have been a provisioning issue as it happened every night at midnight UTC.

That being said, i just had to create a new database and it never happened again. Yours sounds different though.

Also, have you secured your firestore.rules or realtime database rules to make sure that no one is just accessing whatever they want in you db?

I would also be really surprised if you didn’t have any listeners. If you are pulling data from the database or anything on your app updates in real time like counters, data displays, analytics etc, it will almost always have a listener.

1 Like

I feel you that’s exactly the way I feel. I will keep you posted. I just had a wild idea that I would just create a second project through firebase and build the form portion of the app out there. I feel like there’s just too much going on with the app. I’ll keep you posted thank you

2 Likes

that sounds like a plan! good luck!

Yes the AI is really dumb. They should switch to real agents.

This is the kind of things I am constantly dealing with:

”You are absolutely right! My sincerest apologies. In one of my previous edits, I mistakenly removed the entire UI for creating a new consolidated view, leaving only the section to view saved ones. That’s a significant oversight, and thank you for pointing it out.”

or

“My apologies again for the repeated failures. You are absolutely right—I described the feature but completely failed to implement it in the code I provided. I understand your frustration.”

I’m just confused because I was working on things and suddenly it’s messing up again. It’s like I get one foot forward and three steps back . I literally just got set up to start working on building up a better AI for it. I ran into a snag with my Gmail account taking default and kicking me out all the time. I literally signed both accounts out so I can sign back in with my business account first. I was told to do that so it becomes default. Google is punishing me. They’re not letting me log back in for two more days LOL so much for using that good AI right now

Hi all, keep duplicating your workspace and give them versions. If your workspace doesn’t work, fall back to your latest duplicate & make it active. The Prototyper can totally wipe out all your files and data when it is not in the mood! Happened to me twice.

Be carefull to often /clear the chat, because the longer it becomes, the more it fails, taking initiative to follow prompts from something that didn’t work or that you no longer wanted.
If the chat becomes too long at some point it will erase all his answers (including all restore buttons), leaving only your messages; and then you are doomed. If you clear chat , don’t forget to start with a simple instruction (example add a dot in the footer or change color if XXX) to get a fresh restore point. Not sure why google engineers don’t keep the last restore point).

Also I noticed it’s better to restore and re-start an objective than combining many fixes.

In its current stage the prototyper is really powerful, but not for adding external components (like adding google maps, calling APIs, etc), and it requires a LOT of patience. It has a trainee level I would say: even if you are clear with your instructions it can take a lot of time to fix it.

A good practice is to use chargt 5.2 long thinking to describe exactly what to do. It has helped me more than once. Gemini 3 is definitely not as good yet.

1 Like

Thank you for the information and details. I definitely see what you are saying in the work I’ve done. I have definitely spent too much time in one chat giving directions in orders and I believe that caused many flaws. I’ve been figuring much of this out on my own, however I’m stumped on a few different weird happenings. The major one is, I have Q&A functions in my app. There is one specific question I try to delete and when I do, it deletes most of the cards on the page. I’ve tried to reword the question and even move it. Regardless of what I do, any change will delete the whole cards proceeding the Q&A card. Any idea what could be causing this?

Yes actually I do. I have a button temporarily that will remove all dummy reports. The idea is that it simply removes any reports created so I could test the workflow of the app. Do you think this is causing an issue?

ok then that might be a possible entry point for the issue.

Please look at the code itself and the firebase DB write/read files to get an understanding of what is being deleted in the DB. You should be able to ask the AI directly something like below to assist you in analyzing the code.

"I am loosing data from my database consistently. Investigate my delete buttons functionality to check if it is only deleting the reports as intended. If you see nothing wrong there, please search the rest of my project for any and all possible issues that might be causing this to happen.

Read all files and do not guess. You are to read each file and analyze it in-depth. When you are done, please provide me a detailed report on what you find"

This might help you, please feel free to adjust the prompt to fit your needs and point the AI to check specific file etc. But in cases like this, its not a bad idea to work with your AI to do a full audit of all code to see what is going on.

This is not a very good idea.

Setup github to backup files
Create a database scheduled backup

If anything happens to files, pull from your most recent commit.
If anything happens to the DB, restore form the last DB backup.

Depending on the type of project you are working on, creating multiple workspaces that are all the same project can cause configuration issues within your project itself.

1 Like

Unfortunately I’m not so Savvy with a code. At least not this type of code. How exactly could I possibly find someone trustworthy to allow into my site that won’t cause any problems? I would like to allow someone to view what I have and critique it and otherwise find any issue that I may have with this code creating this problem? So it is known, I found also that when I use a card title that I’ve used before it seems to delete all my previous information as well.

Id be happy to take a look.

Ill DM you to work out the details.

Okay thank you. I look forward to the dm.