Baseflow / Baseflow/flutter_cache_manager

ClientException: Redirect limit exceeded

未关闭
#448 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
809
派生
510
平均合并
6 分钟
30 天内合并 PR
1

描述

## 🐛 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

贡献指南

打开贡献指南

调研方向

首先使用报告中的 Megaphone URL,通过 DefaultCacheManager().getFileStream 重现 Android 故障,并检查它所到达的重定向处理逻辑。完成的标准是文件能够成功下载,而不是引发 ClientException: Redirect limit exceeded;如果项目现有的测试支持,则为此回归添加覆盖。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter
领域
mobile, networking
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。