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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [firebase_storage] Task not completing when error #12008
Comments
Thanks for the report @Dampfwalze |
Hey @Dampfwalze. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
@darshankawar I looked into that issue and, while beeing similar, it does not resemble my case. That issue is about the |
Thanks for the update and sorry for coming back late on this. Can you provide on which platform are you seeing this behavior ? |
Hey @Dampfwalze. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
I tested this on Android, but this happens on all platforms using the method channel implementation, since the problem lies in the Dart layer, which is common to all of these platforms. The web implementation seems to not have this issue. Wenn you look through the source code, the JS |
Bug report
Specifically in the implementation for the native platform, a
Task
never completes itsFuture
, when it results in an error.Steps to reproduce
Disallow write access on your storage and try to write any file.
When you try to await the resulting task, it will never finish.
When you use
Task.snapshotEvents.listen
with an error handler, the handler gets called as normal.Expected behavior
It should finish with an error.
Sample project
Additional context
I believe this is because the catch block on line 55 in the following code does not complete the completer, like on line 52. Though it should complete it with an error.
flutterfire/packages/firebase_storage/firebase_storage_platform_interface/lib/src/method_channel/method_channel_task.dart
Lines 21 to 69 in 4bd2d29
Flutter doctor
Click To Expand
Flutter dependencies
Click To Expand
The text was updated successfully, but these errors were encountered: