Baseflow / Baseflow/flutter_cache_manager

Connection closed while receiving data

Abierto
#428 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dart
Estrellas
809
Forks
510
Merge medio
6 min
PR fusionados (30 d)
1

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
dart, flutter
Área
mobile
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.