AI Studio - An internal error occurred. Retry. Looping over and over

Hi All,

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

const introMusic = await AudioUtils.loadAudio({
data: “BASE64_STRING_HERE”,
format: “mp3”
});”

Which Gemini then created a musicData.ts file and asked me to paste the BASE64 code of the mp3 file into it.

The weird thing is that the mp3 music is playing correctly.

Again, i’m not sure if the above is the issue.

How do I get over this error. I’ve tried the following so far.

  1. Tried in a different browser
  2. Copied the App
  3. Changed the model its using from 3 pro to 2.5 still nothing
  4. cleaned cache

Any advise on how to correct or get over this error.

1 Like

I also met this issue. This only occurs fwhen I use 2.5 pro.

Hi @Bitlo ,

Welcome to the Forum!!
If you are using a VPN, we recommend disabling it and trying again. Please let us know if the issue persists.

Hi @Bitlo,

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.