Intermittent image loading issue. Especially on a slower network. Can someone here possibly help or give ideas on a workaround ?
See original GitHub issueDescription
I am using Xamarin to create a eCommerce mobile app that uses shopify as backend. I use syncfusion for most of my controls. However for some reason not all images are always displaying. Sometimes all the images display, sometimes none display.
I am using: XF: v4.0.0.8055-pre1 FFImage: V2.4.5.860-pre
Below is my xaml
<ffimageloading:CachedImage LoadingPlaceholder=βhttps://reactnativecode.com/wp-content/uploads/2018/02/Default_Image_Thumbnail.pngβ Source=β{Binding images[0].src}β Aspect=βAspectFitβ />
I have noticed when I am on a really fast internet connection all my images load. Otherwise sometimes only one or two load. Could shopify be causing a forbidden if ping is below a certain level.
Below is the console error I am receiving and can see its getting a forbidden but when I access the image directly on a browser it works:
Image loading failed: https://cdn.shopify.com/s/files/1/0266/8563/products/Coinfy_Tilt_Table_3_web.jpg?v=1545382216
01-03 13:56:14.012 I/mono-stdout(15349): Image loading failed: https://cdn.shopify.com/s/files/1/0266/8563/products/Coinfy_Tilt_Table_3_web.jpg?v=1545382216
FFImageLoading.DownloadAggregateException: One or more errors occurred. β> System.Net.Http.HttpRequestException: Forbidden
at FFImageLoading.Cache.DownloadCache+<DownloadAsync>d__17.MoveNext () [0x002c7] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:123
β End of stack trace from previous location where exception was thrown β
at FFImageLoading.Cache.DownloadCache+<>c__DisplayClass16_0+<<DownloadAndCacheIfNeededAsync>b__0>d.MoveNext () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:59
β End of stack trace from previous location where exception was thrown β
at FFImageLoading.Retry+<DoAsync>d__01[T].MoveNext () [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:18 01-03 13:56:14.014 I/mono-stdout(15349): FFImageLoading.DownloadAggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: Forbidden --- End of inner exception stack trace --- at FFImageLoading.Retry+<DoAsync>d__0
1[T].MoveNext () [0x0015b] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:32
β End of stack trace from previous location where exception was thrown β
01-03 13:56:14.014 I/mono-stdout(15349): at FFImageLoading.Cache.DownloadCache+<DownloadAsync>d__17.MoveNext () [0x002c7] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:123
at FFImageLoading.Cache.DownloadCache+<DownloadAndCacheIfNeededAsync>d__16.MoveNext () [0x00413] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:58
01-03 13:56:14.015 I/mono-stdout(15349): β End of stack trace from previous location where exception was thrown β
β 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:24
β 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:22
01-03 13:56:14.016 I/mono-stdout(15349): at FFImageLoading.Cache.DownloadCache+<>c__DisplayClass16_0+<<DownloadAndCacheIfNeededAsync>b__0>d.MoveNext () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:59
β End of stack trace from previous location where exception was thrown β
at FFImageLoading.Work.ImageLoaderTask3+<RunAsync>d__109[TDecoderContainer,TImageContainer,TImageView].MoveNext () [0x00300] in C:\projects\ffimageloading\source\FFImageLoading.Common\Work\ImageLoaderTask.cs:561 ---> (Inner Exception #0) System.Net.Http.HttpRequestException: Forbidden at FFImageLoading.Cache.DownloadCache+<DownloadAsync>d__17.MoveNext () [0x002c7] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:123 --- End of stack trace from previous location where exception was thrown --- at FFImageLoading.Cache.DownloadCache+<>c__DisplayClass16_0+<<DownloadAndCacheIfNeededAsync>b__0>d.MoveNext () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:59 --- End of stack trace from previous location where exception was thrown --- at FFImageLoading.Retry+<DoAsync>d__0
1[T].MoveNext () [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Commo
n\Helpers\Retry.cs:18 <β
β> (Inner Exception #1) System.Net.Http.HttpRequestException: Forbidden at FFImageLoading.Cache.DownloadCache+<DownloadAsync>d__17.MoveNext () [0x002c7] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:123 β End of stack trace from previous location where exception was thrown β at FFImageLoading.Cache.DownloadCache+<>c__DisplayClass16_0+<<DownloadAndCacheIfNeededAsync>b__0>d.MoveNext () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:59 β End of stack trace from previous location where exception was thrown β at FFImageLoading.Retry+<DoAsync>d__0`1[T].MoveNext () [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:18 <β
β> (Inner Exception #2) System.Net.Http.HttpRequestException: Forbidden 01-03 13:56:14.017 I/mono-stdout(15349): β End of stack trace from previous location where exception was thrown β at FFImageLoading.Cache.DownloadCache+<DownloadAsync>d__17.MoveNext () [0x002c7] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:123 β End of stack trace from previous location where exception was thrown β at FFImageLoading.Cache.DownloadCache+<>c__DisplayClass16_0+<<DownloadAndCacheIfNeededAsync>b__0>d.MoveNext () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:59 β End of stack trace from previous location where exception was thrown β at FFImageLoading.Retry+<DoAsync>d__0`1[T].MoveNext () [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:18 <β
β> (Inner Exception #3) System.Net.Http.HttpRequestException: Forbidden at FFImageLoading.Cache.DownloadCache+<DownloadAsync>d__17.MoveNext () [0x002c7] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:123 β End of stack trace from previous location where exception was thrown β at FFImageLoadin
g.Cache.DownloadCache+<>c__DisplayClass16_0+<<DownloadAndCacheIfNeededAsync>b__0>d.MoveNext () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:59 β End of stack trace from previous location where exception was thrown β at FFImageLoading.Retry+<DoAsync>d__0`1[T].MoveNext () [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:18 <β
- Version with issue:
- Last known good version:
- Platform:
Screenshots
Reproduction Link / Code
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
We are running into the same issue but @edwinjeppe1βs above fix is not helping, there seems to be a number of scattered reports of this but no resolution @daniel-luberda has there been any investigation into this?
Fixed