koush / ion

Android Asynchronous Networking and Image Loading
Other
6.29k stars 1.04k forks source link

Image loading timed out #664

Open norman-kapschefsky opened 8 years ago

norman-kapschefsky commented 8 years ago

Hi, within our app we are using facebook native ads that contains ad images. The follwing one produces a timeout when loading with ion even image is working fine in browser: https://fbexternal-a.akamaihd.net/safe_image.php?d=AQBl0OdTS37zFe-Y&w=796&h=416&url=https%3A%2F%2Fwww.facebook.com%2Fads%2Fimage%2F%3Fd%3DAQKhYvQ-HVv-hRQLdYKhWvdgXsBrLmb-FUiu85kETax3CcCbXkjgP1lBjGVLz98yOH6pSSZvd6LlqywqZeqeekIumYAs-tIjxFyAA6zRDp6SWzz3lTQ2km183J6thbHUcfOVOXGQJfxa6bxqMaVo4MsR&cfs=1&ext=jpg

I figured out that requesting that image without https is working. It seams there is a security issue. You may can check if there is a problem within ion? Thanks in advance.

12-07 10:54:56.205 18291-18445/net.fashionfreax E/ffx_ion: (30027 ms) https://fbexternal-a.akamaihd.net/safe_image.php?d=AQBl0OdTS37zFe-Y&w=796&h=416&url=https%3A%2F%2Fwww.facebook.com%2Fads%2Fimage%2F%3Fd%3DAQKhYvQ-HVv-hRQLdYKhWvdgXsBrLmb-FUiu85kETax3CcCbXkjgP1lBjGVLz98yOH6pSSZvd6LlqywqZeqeekIumYAs-tIjxFyAA6zRDp6SWzz3lTQ2km183J6thbHUcfOVOXGQJfxa6bxqMaVo4MsR&cfs=1&ext=jpg: Connection error
12-07 10:54:56.206 18291-18445/net.fashionfreax E/ffx_ion: null
                                                           java.util.concurrent.TimeoutException
                                                               at com.koushikdutta.async.http.AsyncHttpClient$2.run(AsyncHttpClient.java:247)
                                                               at com.koushikdutta.async.AsyncServer.lockAndRunQueue(AsyncServer.java:708)
                                                               at com.koushikdutta.async.AsyncServer.runLoop(AsyncServer.java:725)
                                                               at com.koushikdutta.async.AsyncServer.run(AsyncServer.java:626)
                                                               at com.koushikdutta.async.AsyncServer.access$700(AsyncServer.java:41)
                                                               at com.koushikdutta.async.AsyncServer$13.run(AsyncServer.java:568)
florianhenonin commented 6 years ago

Same problem. I'm sure about the end point validity. But always got this error...