flutter_cache_manager icon indicating copy to clipboard operation
flutter_cache_manager copied to clipboard

ClientException: Redirect limit exceeded

Open rootd opened this issue 1 year ago • 2 comments

🐛 Bug Report

Trying to download from the following uri:

https://traffic.megaphone.fm/ROOSTER7204211183.mp3?updated=1708735557

results in the exception:

ClientException: Redirect limit exceeded, uri=https://traffic.megaphone.fm/ROOSTER7204211183.mp3?updated=1708735557

Expected behavior

Download the file.

Reproduction steps

DefaultCacheManager()
        .getFileStream("https://traffic.megaphone.fm/ROOSTER7204211183.mp3?updated=1708735557", withProgress: true)

Configuration

Version: v3.3.0

Platform:

  • [ ] :iphone: iOS
  • [X ] :robot: Android

rootd avatar Feb 26 '24 18:02 rootd

..any news? This is still relevant :(

rootd avatar Dec 21 '24 19:12 rootd

I now edited file_service.dart function "get" and added:

req.maxRedirects = 20;

In my opinion this should be configurable by default using some sort of parameter. Should I create a pull request?

rootd avatar Dec 21 '24 20:12 rootd