evgenyneu / Auk

An image slideshow for iOS written in Swift.
MIT License
277 stars 44 forks source link

The request timed out Error for large images (5MB) #89

Closed csprasad closed 4 years ago

csprasad commented 4 years ago

Im trying to show images using url which in response it contains 5 mb image file and always its throwing time out message.

evgenyneu commented 4 years ago

Thanks for reporting the issue. It could timeout because it takes longer than 20 seconds (default timeout) to load the large image. Maybe try increasing the timeout and see if it helps?

import moa
Moa.settings.requestTimeoutSeconds = 60

But if I had control over images, I would first make them smaller.

csprasad commented 4 years ago

Thank you @evgenyneu