Open sandeep9607 opened 4 years 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.
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.
3.3.1 Still have this problem
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.
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)