Skip to content

com.parse.ParseRequest$ParseRequestException: i/o failure #545

@iamalroberts

Description

@iamalroberts

All of a sudden, i am not longer able to upload any type of ParseFile objects, specifically in my case images. It runs and runs and finally i get com.parse.ParseRequest$ParseRequestException: i/o failure error with the cause being java.net.SocketTimeoutException.

ByteArrayOutputStream stream = new ByteArrayOutputStream();
                imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);
                byte[] bytearray = stream.toByteArray();
                ParseFile styleImageFile = new ParseFile("styleImage.jpeg", bytearray);
	     
    styleImageFile.saveInBackground(new SaveCallback() {
                    @Override
                    public void done(ParseException e) {
                        if(e==null) {
                            //success
                        }else
                        {
                           //fail
                            Log.e("Edit Style Error", e.getMessage());
                        }
                    }
                });

This is my current build file

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"
    defaultConfig {
        applicationId "com.iamalroberts.natural"
        minSdkVersion 21
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.parse:parse-android:1.13.1'
    testCompile 'junit:junit:4.12'
    compile 'com.github.clans:fab:1.6.2'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions