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
java android parse.com


source to share


No one has answered this question yet

See similar questions:

3
Session Exception: Connection to https://api.parse.com refused

or similar:

1116
Android SDK installation not finding JDK
843
How can I connect to Android with ADB over TCP?
521
Determine if Android has internet access
409
Android Min SDK version for target SDK version
7
CursorWindowAllocationException in standard ORMLite method
five
Connection to https://api.parse.com refused
3
Session Exception: Connection to https://api.parse.com refused
2
GCM Timeout & Connection Refused after sending 5000 push notifications
0
java.lang.RuntimeException: Unable to connect to camera service OnPause and OnResume
0
open failed: EROFS (read-only file system) Android phone phone app



All Articles
Loading...
X
Show
Funny
Dev
Pics