Skip to content

Parse Cloud on Android with error i/o failure. #1048

Closed
@dev01-adroitinfosol

Description

@dev01-adroitinfosol

hi, im stuck with this issue on android devices, i used :

    android:usesCleartextTraffic="true"
    android:networkSecurityConfig="@xml/network_security_config"


    <meta-data
        android:name="com.parse.SERVER_URL"
        android:value="@string/parse_server" />
    <meta-data
        android:name="com.parse.APPLICATION_ID"
        android:value="@string/parse_app_id" />
    <meta-data
        android:name="com.parse.CLIENT_KEY"
        android:value="@string/parse_client_id" />

everything i can find on google, but still when i call parse cloud function request 👍

    HashMap<String,String> map = new HashMap<>();
    map.put("score", String.valueOf(rightQuestionCount));
    map.put("time", String.valueOf((int)timeSpent/1000));
    map.put("user", ParseUser.getCurrentUser().getObjectId());

    ParseCloud.callFunctionInBackground("saveLeaderboard", map, new FunctionCallback<Map<String,Object>>() {
        @Override
        public void done(Map<String,Object> objectMap, ParseException e) {

            if (e!=null) {
                Log.e(TAG, "parse error : "+e.getLocalizedMessage() );
            } else {
//                    Log.e(TAG, "done: "+object.toString() );
            }
        }
    });

always getting error,
V/com.parse.ParseRequest: Request failed. Waiting 1232 milliseconds before attempt parse-community/parse-server#1
V/com.parse.ParseRequest: Request failed. Waiting 1232 milliseconds before attempt parse-community/parse-server#2
V/com.parse.ParseRequest: Request failed. Waiting 1232 milliseconds before attempt parse-community/parse-server#3
V/com.parse.ParseRequest: Request failed. Waiting 1232 milliseconds before attempt parse-community/parse-server#4

error i/o failure.

could you please help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions