DWorkS / VolleyPlus

🏐 Volley library : make everything faster . Its an improvements for Volley by Google for Android https://android.googlesource.com/platform/frameworks/volley
https://github.com/DWorkS/VolleyPlus
984 stars 275 forks source link

io.EOFException for android 4.3 version , but if I try to save multiple times request is completed. It is working for version 5 #64

Open ranjit84 opened 7 years ago

ranjit84 commented 7 years ago

SimpleMultiPartRequest request = new SimpleMultiPartRequest(Request.Method.POST, Constants.URL_TEACHER_ADD, this, this);

        if (teacher.getImagePath() != null)
            request.addFile("avatar", teacher.getImagePath().getPath());

        request.addMultipartParam("name", "text/plain", teacher.getName());
        request.addMultipartParam("sname", "text/plain", teacher.getSpiritualName());
        request.addMultipartParam("desc", "text/plain", teacher.getDesc());

        int socketTimeout = 60000 * 5;
        RetryPolicy policy = new DefaultRetryPolicy(socketTimeout, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);
        request.setRetryPolicy(policy);

        request.setShouldCache(false);

        AppController.getInstance().addToRequestQueue(request, "REQ_TEACHER_ADD");
ranjit84 commented 7 years ago

com.android.volley.error.NoConnectionError: java.io.EOFException Request - [ ] http://xx.xxx.xx.xx:xxxx/user/teacher/ 0x2a876489 NORMAL null