Connecting to https://api.parse.com has deprecated 1.5.1 Android Parse SDK
In my app 1.5.1 Android Parse SDK.
Many of my clients connect to Parse.com without issue. I have some clients who are getting an error like this:
i/o failure: org.apache.http.conn.HttpHostConnectException: Connection to https://api.parse.com refused
com.parse.ParseException: i/o failure: org.apache.http.conn.HttpHostConnectException: Connection to https://api.parse.com refused
at com.parse.ParseRequest.connectionFailed(SourceFile:387)
at com.parse.ParseRequest$3.call(SourceFile:271)
at com.parse.Task$3.run(SourceFile:199)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
I am running the code on a thread and have a timer that will stop the timer and put a message that cannot be connected. It does not run until this timer expires.
Here's the code that doesn't work:
new Thread(new Runnable() {
public void run() {
try {
Parse.initialize(mContext, mAppId, mAppKey);
ParseQuery<ParseObject> query1 = ParseQuery.getQuery("myTable");
query1.setCachePolicy(ParseQuery.CachePolicy.NETWORK_ONLY);
ParseObject metaData = query1.getFirst();
// do other work...
}
catch (Exception e) {
Log.e(TAG, e);
}
}
});
Clients show screenshots of active data connections (both cellular and wireless).
Any ideas on why some clients fail and most work?
0
source to share
No one has answered this question yet
See similar questions:
or similar: