I’m building an app and suddenly started getting “An internal error occurred” Retry. It seems to have started after I asked Gemini to do the following:
“I have an Mp3 music file I want you to play for the intro and outro, how can I implement that file here?
I don’t want to have to upload the audio file every time. I want you to hard code the mp3 file into the app so that It will play? possibly converting it to base64 first and then using it
something like this
I have faced this issue in the past, and the error never goes away. So, what I do is go back to the prompt in which my application was working, and then I clear the chat, followed by a new prompt. This time, I just rephrase it. Something similar, but the majority of the time, it works. If the same issue comes up, I repeat the same process and rephrase the prompt again so that the AI understands me. Let me know if it works : )
I noticed that sometimes this error happens when the project gets too large and there are too many files or files are too large. But in this specific project, files are not too large. I have many of them, but they are not too large. The overall project is 2 MB.
I had to switch to my key for the API, but still the issue is still there. It keeps retrying, but this is only happening if I use a Gemini 3 Pro preview.
It would be good to have a bit more information on what the issue is when we have such a message.