An Internal Error has occurred. Please retry or report in

I get this error consistently now whenever any of the Gemini models try to make any changes to the main file in my project. The AI resons correctly, can read the file but then never gets to the stage of producing the “Update File” button ready to update the actual file.
This now happens 100% of the time and has been occuring for multiple days. I can provide details of my workspace if it would help.

It specifically occurs when updating one specific file in my project. Other files can be updated correctly by adding a comment but page.tsx cannot be updated. It may be as the file is being read. Is there a limit to file length?

The file in question was 647 lines long and so I have refactored it by moving some logic into a separate file. This appears to have stopped the error message appearing on screen but the system is just stopping with no error message at the point it is ready to make changes to the file. It will finish reasoning and say “ok, i’m now going to make some changes to the files…” (or similar wording) and then just stop without having made any changes.

As shown here.

edit this post was initially “hidden by the community” because it was deemed an advertisement. I’m not advertising Jules (although after reading it I can see why it sounds like one). It is a google product like firebase and was presented at Google I/O. Jules: Google’s autonomous AI coding agent. Hope this helps, and hopefully firebase can fix this issue so we don’t have to find workarounds.

I am having the exact same issues with some of my code files in firebase. I have found a pretty good work around if you sync your project to github, you can use Google’s Jules agent. https://jules.google/
Give Jules access to the full project in github and ask it to perform the code changes, then publish. Then pull Jules’ changes back in firebase. Jules, which i suspect also uses gemini 2.5 pro, actually seems to work better with less retries and bugs than 2.5 pro in firebase.

1 Like

very helpful, thanks.