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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the url leads to 404, app crash #242

Closed
echo-4313 opened this issue Sep 13, 2019 · 6 comments
Closed

If the url leads to 404, app crash #242

echo-4313 opened this issue Sep 13, 2019 · 6 comments

Comments

@echo-4313
Copy link

If I use the wrong url or the image url from server is not found, the app will crash

@wackyapps
Copy link

Same issue happening with me. I am about to submit the app to client for review and they have removed some urls from api. Now the images are 404 and this plugin does not handle 404 exception.

@echo-4313
Copy link
Author

They may response slowly. The solution I can think out is that backend developers detect image not found and 301 jump to default image url.
This is a trick and temporary solution.

@sreyseng
Copy link

Not just 404, along same line, 403 crash app as well.

D/Error (25502): Caused by: com.kiwi.fluttercrashlytics.FlutterException: HttpException: No valid statuscode. Statuscode was 403 D/Error (25502): at BaseCacheManager.getFile(package:flutter_cache_manager/src/cache_manager.dart:120) D/Error (25502): at CachedNetworkImageState._animatedWidget(package:cached_network_image/src/cached_image_widget.dart:270) D/Error (25502): at CachedNetworkImageState.build(package:cached_network_image/src/cached_image_widget.dart:196)

@congjiujiu
Copy link

So when would this bug be fixed? it seriously hindered me from using this awesome package.

@adamsowinski
Copy link

When will we get a fix?

@renefloor
Copy link
Contributor

grouping this in #273

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

6 participants