Baseflow / flutter_cached_network_image

Download, cache and show images in a flutter app
https://baseflow.com
2.43k stars 652 forks source link

CacheManager: Failed to download file from url #336

Open sandeep9607 opened 4 years ago

sandeep9607 commented 4 years ago

cached_network_image: ^2.0.0

I/flutter (23961): CacheManager: Failed to download file from http://host/images/a.png with error: I/flutter (23961): SocketException: Failed host lookup: 'host' (OS Error: No address associated with hostname, errno = 7)

flying-lantern commented 6 months ago

I just found this library and ran into this issue. It is pretty disappointing that the developers fail to acknowledge this as a problem. For some reason or the other an invalid URL can be provided where the reasonable expectation would be for the error widget to be rendered in the image's place. It's a shame the developers have taken this stance. The plugin is otherwise great.

danial2026 commented 5 months ago

apparently, the issue is in newer versions of Flutter. I found out that Flutter 3.10.6 works without any issues. (If your app is dependent on newer versions, you are out of luck.) and obviously, versions older than 3 won't work either.

zhuyuzhu commented 5 months ago

3.3.1 Still have this problem

Mohit8G commented 5 months ago

https://medium.com/@rishyash8/flutter-firebase-crash-report-because-of-connection-closed-before-full-header-was-received-7ace6e84bc5d https://medium.com/@rishyash8/how-to-load-network-image-in-flutter-with-retry-functionality-837db9809662

this might help

BenjaminStoeberl commented 2 months ago

According to the changelog, with CachedNetworkImage version 3.3.1 errors are no longer reported to the global error handler if you add an errorListener.