我正在为 Android 使用 Koushik Dutta 的Ion网络库。
我想通过这个地址与 instagram 的 api 建立连接:https ://instagram.com/api/
但是当通过 ion 尝试时,它适用于某些 ISP,不适用于其他一些并引发异常。似乎是因为地址以 https 开头,因为它与 http 一起工作正常。
感谢您的帮助提前感谢您的指导
日志:
03-02 12:46:51.042: E/instagram_log(3770): (30241 ms) https://instagram.com/api/v1/accounts/login/: Connection error
03-02 12:46:51.045: E/instagram_log(3770): null
03-02 12:46:51.045: E/instagram_log(3770): java.util.concurrent.TimeoutException
03-02 12:46:51.045: E/instagram_log(3770): at com.koushikdutta.async.http.AsyncHttpClient$2.run(AsyncHttpClient.java:247)
03-02 12:46:51.045: E/instagram_log(3770): at com.koushikdutta.async.AsyncServer.lockAndRunQueue(AsyncServer.java:708)
03-02 12:46:51.045: E/instagram_log(3770): at com.koushikdutta.async.AsyncServer.runLoop(AsyncServer.java:725)
03-02 12:46:51.045: E/instagram_log(3770): at com.koushikdutta.async.AsyncServer.run(AsyncServer.java:626)
03-02 12:46:51.045: E/instagram_log(3770): at com.koushikdutta.async.AsyncServer.access$700(AsyncServer.java:41)
03-02 12:46:51.045: E/instagram_log(3770): at com.koushikdutta.async.AsyncServer$13.run(AsyncServer.java:568)
03-02 12:46:51.155: W/System.err(3770): java.util.concurrent.TimeoutException
03-02 12:46:51.156: W/System.err(3770): at com.koushikdutta.async.http.AsyncHttpClient$2.run(AsyncHttpClient.java:247)
03-02 12:46:51.172: W/System.err(3770): at com.koushikdutta.async.AsyncServer.lockAndRunQueue(AsyncServer.java:708)
03-02 12:46:51.172: W/System.err(3770): at com.koushikdutta.async.AsyncServer.runLoop(AsyncServer.java:725)
03-02 12:46:51.172: W/System.err(3770): at com.koushikdutta.async.AsyncServer.run(AsyncServer.java:626)
03-02 12:46:51.172: W/System.err(3770): at com.koushikdutta.async.AsyncServer.access$700(AsyncServer.java:41)
03-02 12:46:51.172: W/System.err(3770): at com.koushikdutta.async.AsyncServer$13.run(AsyncServer.java:568)