koush / ion

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

ErrnoException and GaiException when using ion #572

Open gcut opened 9 years ago

gcut commented 9 years ago

I have an android app, published on Google Play, that uses ion for networking and image loading. In my Google Analytics dashboard I've noticed 2 strange exceptions that I couldn't reproduce so far: ErrnoException (@IoBridge:isConnected:201) and GaiException (@Posix:android_getaddrinfo:-2) I am using the version 2.0.2 for both ion and androidasync libraries Is this related with the ion library or is it something else?

Thanks

jlhonora commented 9 years ago

I usually see those when there are DNS or proxy problems in the device. I usually try to catch that and let the user know, but it's hardly a problem with Ion.

You can simulate it like this:

B reqBuilder = Ion. ...
reqBuilder.proxy("somenonexistingurl.company", 8888)