Baseflow / Baseflow/flutter_cache_manager

Connection closed while receiving data

Aperta
#428 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
809
Fork
510
Merge medio
6m
PR unite (30g)
1

Descrizione

## 🐛 Bug Report

When using the downLoadWithProgress function to download a file with a specific URL, an "Connection closed while receiving data" error is triggered
### Expected behavior
I expected the downLoadWithProgress function to successfully download the file from the provided URL without generating an error.
### Reproduction steps
Call the downLoadWithProgress function with appropriate parameters, including filePathUrl and key.
Wait for the download to be in progress and observe the steps.
### Configuration

**Version:** 3.3.1

Stream downLoadWithProgress({
required String filePathUrl,
required String key,
}) async* {
try {
final url = await _cachedFirestorage.getDownloadURL(
mapKey: key,
filePath: filePathUrl,
);
final fileStream = _defaultCacheManager.getFileStream(
url,
withProgress: true,
key: key,
);
await for (final fileResponse in fileStream) {
yield fileResponse;
}
} catch (e) {
debugPrint(e.toString());
throw e.toString();
yield DownloadFailed(filePathUrl);
}
}

**Platform:**
- [ ] :iphone: iOS
- [X ] :robot: Android

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the Android failure with downLoadWithProgress using the reported filePathUrl and key, then follow the _defaultCacheManager.getFileStream call while progress events are received. Done means the requested file downloads successfully without the "Connection closed while receiving data" error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart, flutter
Ambito
mobile
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.