Baseflow / Baseflow/flutter_cache_manager

Connection closed while receiving data

Đang mở
#428 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
809
Fork
510
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi Android với downLoadWithProgress bằng filePathUrl và key được báo cáo, sau đó theo dõi lệnh gọi _defaultCacheManager.getFileStream trong khi nhận các sự kiện tiến trình. Hoàn tất khi tệp được yêu cầu tải xuống thành công mà không xuất hiện lỗi "Connection closed while receiving data".

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
dart, flutter
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.