fluttercommunity / flutter_downloader

Flutter Downloader - A plugin for creating and managing download tasks.
https://pub.dev/packages/flutter_downloader
BSD 3-Clause "New" or "Revised" License
905 stars 508 forks source link

Error Handling #324

Open keehoo opened 4 years ago

keehoo commented 4 years ago

Hi, cheers for your work on doing this library, it's working like a charm. What I'm missing is error handling. Can't see any option to handle HTTP errors, unresolved hosts etc... Any plans to add that?

blunderous commented 4 years ago

I think that there is a better way of checking http errors rather than include them here. There is the http package that takes an http request, and then you can check if the response is what you want, parse your information and then download the file. There are so many variables to take into account in order to merge both of them, that it is not worth it. Furthermore, accounting for all the errors that one may have makes using this and the http package a way more simple task.

ghost commented 1 year ago

Any update on this issue? It seems error handling is one of the most important features missing from this nice package