Baseflow / Baseflow/flutter_cache_manager

Connection closed while receiving data

Ouverte
#428 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Dart
Étoiles
809
Forks
510
Merge moyen
6 min
PR mergées (30 j)
1

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par reproduire l’échec Android avec downLoadWithProgress en utilisant le filePathUrl et la clé indiqués, puis suivez l’appel à _defaultCacheManager.getFileStream pendant la réception des événements de progression. C’est terminé lorsque le fichier demandé est téléchargé avec succès sans l’erreur "Connection closed while receiving data".

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
dart, flutter
Domaine
mobile
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.