Closed LunarX closed 2 years ago
There's no clear action to take here as this is an error triggered by your backend due to launching too many image requests in a short period of time. What's the expected behaviour here?
@colinrtwhite Normally coil is supposed to stop being effective when working with the recyclerview. In case of normal use with a recyclerview there is no problem. But here when we scroll very quickly, coil launches several calls in a row, hence the exception, so this management is not managed by coil at all. So what would be interesting would be to have a way for coil to avoid launching several calls in a recyclerview that is scrolling, and that simply launches when you stay on the view. That way there won't be any problem.
@sirambd This sounds like a good candidate for a custom Interceptor
. You can suspend, delay, or cancel calls based on custom logic.
Okay I understand @colinrtwhite but I think it's a pity that coil doesn't do it automatically, as I didn't have this problem with glide. It would be interesting to have an extension for recyclerview that limits the loading from remote when scrolling.
Okay I understand @colinrtwhite but I think it's a pity that coil doesn't do it automatically, as I didn't have this problem with glide. It would be interesting to have an extension for recyclerview that limits the loading from remote when scrolling.
I also find it interesting
Describe the bug We're using coil version
2.0.0-rc02
. We use coil to display thumbnails in an image gallery. When we use the fast scrollbar to browse images, we sometimes receive anhttp error 429
"too many requests" from our backend because we loaded too many thumbnails in a short amount of time.To Reproduce
http error 429
Logs/Screenshots
Version
2.0.0-rc02