Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection closed while receiving data #428

Open
1 task
AlexandreMaillot opened this issue Aug 29, 2023 · 1 comment
Open
1 task

Connection closed while receiving data #428

AlexandreMaillot opened this issue Aug 29, 2023 · 1 comment

Comments

@AlexandreMaillot
Copy link

馃悰 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:

  • 馃摫 iOS
  • [X ] 馃 Android
@jerrypaulsam
Copy link

Were you able to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants