I am unable to download my app file getting error To Many Redirects

Hi Please help me to fix this issue. Everything is working fine before sometime. But now when i try to download my apk file to test it on real devices. Or want to download any file i am unable to download it. The firebase studio open a new window and show me a error like too many redirects.

I have attached some pics.

First is how i am downloading my file. I right click on the file and select zip & download options.

Then I wait to make this zipping. After a few seconds it automatically open a new tab. and show me this error.

I have do anything that i can do. Like I clear browser cache. Clear browser data. Everything. I also try to run in incognito window. I also try to zip the whole folder and try to download it. But same error. Please help me to fix it.

Thanku.
Waiting for response.

I am still waiting for response. Is there are any body who help me

@Rehmall - let me flag this for the team to look at.

Btw - does downloading any file not work? Or does the failure only happen with APK files?

Hello @kirupa ,

Not trying to squat this topic, but I have a quite similar problem since a few days (it worked perfectly fine before): when trying to download my Android App Bundle (generated within Firebase Studio, even though I was used to call it Project IDX ;-)) by right clicking the file generated in build/app/outputs/bundle/release and choosing “Download”, nothing happens.

When choosing Zip & Download, it ZIPs the file and opens a new window in which the “Too many redirects” message is shown. Sometimes it goes on and still downloads the ZIP file but sometimes it doesn’t.

And I actually don’t want this extra ZIP action, since I need to unZIP it once downloaded, while with the direct Download option it was easy to use.

Some additional important information:

  • this problem didn’t exist until a few days ago (so far everything worked fine and as expected)
  • I now run into this problem in different browsers and on different computers, so it really seems to come from Firebase Studio
  • I can download my APK files without any problems from the same project, the direct Download option works

Hi, I’m trying to repro this issue but haven’t been able to. I tried > right clicking on the src folder > zip and download and it worked as expected.

I also tried Download (which is for single files) and did not run into any issues.

Can you please try a diff template or try a diff folder in the same project to confirm if this issue with the workspace or something else?

Same problem for every file. I tried everything like clear browser cache. Uninstall and reinstall the browser even I share my project to a different email and try to download from here. But still same problem. Kindly help me to fix it. I also tried to download through my mobile device. 2 days i can download everything like apk file appbundle file and any file i need to download. But after 2 days same error on my mobile device.

Brother, I tried to download different folders and different files to confirm that does the issue is only on that apk or appbundle file. But the issue on all files. I tried the direct download button but it also not work. Nothing works for me. I almost tried everthing that I can do.

Now I am getting the same error with the android studio emulator. I also opened the emulator into the new window but there are just a blank screen appear. I have a 20mbps internet connections. But i dont know why its doing like this.

Can you try this is on another workspace as well?

I have tried. On other workspace everything is working well. Only on this workspace i am getting the issue. The issue is now come. My this workspace work 3 to 4 weeks very well. But now some time it give me a broken download functionality and some it give me broken emulator functionaltiy. I am using flutter template. This is my most used workspace.

I have the same problem too. Now any solution?

First try to login your account into another device and download from here. If the same error there. Then just restart your workspace 2 to 3 times and clear browser cache with every try. On Every restart open the workspace and download the file. After restarting 2 to 3 times and clearing browser cache every time your problem solve automatically.

Thanks for answering. But this way is not worked for me and I try my project in another workspace. And it’s ok to download .abb file now.

Hmm. Congratulations your file is downloaded.

same here ,

was doing zip and download maybe the 8th or 9th time today, now getting…

This page isn’t working

35069-firebase-example-lqnxvk7thvfw4wbonsercicksm.cloudworkstations.dev redirected you too many times.

yes i deleted cookies, yes i’ve tried in incognito mode, logging into idx.. .

tried on a different device..

isn’t there some way to send this directly to drive by now?

i know i’ve done this 10 or 20 before in a session with out getting this…

concerned about restarting workspace, will build dir go away?

oh vey…

8 hours later , i can download , ya!

back to this error, 48 hours later can’t download+zip again, first one attempted too,

very frustrating.

tar czf - app-release.apk | split -b 15M - app-release.apk.part

then you can download the parts

If you are facing this error continuously. Kindly restart the workspace 2 to 3 times. Try to download file everytime when restart workspace. After 3 - 5 times restarting the workspace you can download the file.

I am also very disturb from this error but everytime this solution works for me.
I will request firebase to fix this error as soon as possible.

It sounds incredibly frustrating to be dealing with a persistent download and zip issue in Firebase Studio. The error you’re seeing isn’t uncommon, especially when trying to download large files. The command-line solution provided is a clever workaround to get your file.

Here’s a breakdown of what that command does and why it helps:

Understanding the Command

tar czf - app-release.apk | split -b 15M - app-release.apk.part

This single command combines two powerful actions:

* Archiving and Compressing (tar czf - app-release.apk): This part takes your app-release.apk file and compresses it. The - at the end means the compressed data is sent to “standard output” instead of a file.

* Splitting the Output (split -b 15M - app-release.apk.part): This command takes the compressed data coming from the first part and splits it into smaller files.

* -b 15M tells it to make each chunk 15 megabytes in size.

* app-release.apk.part is the prefix for the new file names. You’ll end up with files like app-release.apk.partaa, app-release.apk.partab, and so on.

By splitting the file, you can download each smaller part individually, which is much more reliable than trying to download one huge file. It’s a great way to bypass whatever is causing the download to fail in Firebase Studio.

How to Use the Split Files

After you’ve downloaded all the smaller parts, you’ll need to combine them on your local machine to restore the original file. You can do this with another command in your terminal:

cat app-release.apk.part* > app-release.apk.tar.gz

* cat concatenates (combines) all the files that match the pattern app-release.apk.part*.

* > redirects the output to a new file named app-release.apk.tar.gz.

Once you have the .tar.gz file, you can decompress and extract it to get your original app-release.apk file.

While this is a great solution to get your work done.