FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

Image loading failed : FFImageLoading.Exceptions.DownloadHttpStatusCodeException

Open PaulsonM opened this issue 5 years ago • 3 comments

Description

App gets crashed when the image retrieved from a URL is not found (404 error)

Steps to Reproduce

App gets crashed when the source of the image is retrieved from a URL, where the resource is not found (404 error)

Expected Behavior

Not get crashed

Actual Behavior

App gets crashed

Basic Information

  • Version with issue: Xamarin.FFImageLoading v2.4.9.961 Xamarin.FFImageLoading.Forms v2.4.4.859

  • Platform: iOS

Reproduction Link / Code

<ffimageloading:CachedImage Aspect="Fill" Source="{Binding ImgURL}" LoadingDelay="0" CacheDuration="59999" HorizontalOptions="Fill" />

Stack Trace

Image loading failed: http://xyz.com/blah.png?;160x0
FFImageLoading.Exceptions.DownloadHttpStatusCodeException: NotFound <html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr>
</body>
</html>

  at FFImageLoading.Cache.DownloadCache+<DownloadAsync>d__16.MoveNext () [0x00266] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:119 
--- End of stack trace from previous location where exception was thrown ---
  at FFImageLoading.Cache.DownloadCache+<>c__DisplayClass15_0+<<DownloadAndCacheIfNeededAsync>b__0>d.MoveNext () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:58 
--- End of stack trace from previous location where exception was thrown ---
  at FFImageLoading.Retry+<DoAsync>d__0`1[T].MoveNext () [0x00189] in <eb932715e03b4269a2939e4cee76e949>:0 
--- End of st
ack trace from previous location where exception was thrown ---
  at FFImageLoading.Cache.DownloadCache+<DownloadAndCacheIfNeededAsync>d__15.MoveNext () [0x00401] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:57 
--- End of stack trace from previous location where exception was thrown ---
  at FFImageLoading.DataResolvers.UrlDataResolver+<Resolve>d__7.MoveNext () [0x00045] in C:\projects\ffimageloading\source\FFImageLoading.Common\DataResolvers\UrlDataResolver.cs:22 
--- End of stack trace from previous location where exception was thrown ---
  at FFImageLoading.DataResolvers.WrappedDataResolver+<Resolve>d__2.MoveNext () [0x00044] in C:\projects\ffimageloading\source\FFImageLoading.Common\DataResolvers\WrappedDataResolver.cs:21 
--- End of stack trace from previous location where exception was thrown ---
  at FFImageLoading.Work.ImageLoaderTask`3+<RunAsync>d__109[TDecoderContainer,TImageContainer,TImageView].MoveNext () [0x0032d] in <eb932715e03b4269a2939e4cee76e949>:0 

Kindly provide a solution. Thanks!

PaulsonM avatar Jun 27 '19 09:06 PaulsonM

I can see one or two similar issues with this title, but the stack trace and the image source are different in those cases...

PaulsonM avatar Jun 27 '19 09:06 PaulsonM

Same issue here. App getting slower.

agussaputrasijabat avatar Aug 12 '19 07:08 agussaputrasijabat

Is there any update on this issue? I am having the same issue trying to load from unsplash

Same issue here. App getting slower.

tpho216 avatar Jan 05 '21 04:01 tpho216