Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dev01-adroitinfosol opened this issue Jul 10, 2020 · 7 comments
Closed

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

dev01-adroitinfosol opened this issue Jul 10, 2020 · 7 comments
Labels
type:question Support or code-level question

Comments

@dev01-adroitinfosol
Copy link

dev01-adroitinfosol commented Jul 10, 2020

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?

@mtrezza mtrezza transferred this issue from parse-community/parse-server Jul 10, 2020
@mtrezza
Copy link
Member

mtrezza commented Jul 10, 2020

This looks like a network issue.

The client SDK seems to be unable to reach Parse Server. Do other requests (like queries or user sign-up) execute successfully when made by client SDK?

@dev01-adroitinfosol
Copy link
Author

yes, everything is working except ParseCloud.

@mtrezza
Copy link
Member

mtrezza commented Jul 10, 2020

Can you post the Parse Server logs when you try to call a Cloud Code function?
Does the call time out or how long does it take until the client logs the i/o error?

@dev01-adroitinfosol
Copy link
Author

dev01-adroitinfosol commented Jul 11, 2020

logs are given below:

2020-07-11 10:46:15.314 14777-14820/ V/com.parse.ParseRequest: Request failed. Waiting 1512 milliseconds before attempt #1
2020-07-11 10:46:16.836 14777-14823/ V/com.parse.ParseRequest: Request failed. Waiting 3024 milliseconds before attempt #2
2020-07-11 10:46:19.869 14777-14826/ V/com.parse.ParseRequest: Request failed. Waiting 6048 milliseconds before attempt #3
2020-07-11 10:46:25.927 14777-14829/ V/com.parse.ParseRequest: Request failed. Waiting 12096 milliseconds before attempt #4
2020-07-11 10:46:38.045 14777-14777/ E/TestEngine: parse error : i/o failure

@mtrezza
Copy link
Member

mtrezza commented Jul 11, 2020

These are the Android logs, can you post the Parse Server logs?
Does the call time out or how long does it take until the client logs the i/o error?

@dev01-adroitinfosol
Copy link
Author

ok i dont have that.

@mtrezza
Copy link
Member

mtrezza commented Jul 22, 2020

I'm closing this as it does not seem to be a Parse Android SDK issue.

Here are some resources you can try:

  • For code-level questions we recommend Stack Overflow using the parse-platform tag.
  • For network and server questions we recommend ServerFault using the parse tag
  • For questions that are not appropriate for the above mentioned sites we recommend our community forum.

Feel free to comment if you have any questions and we can re-open this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

2 participants