Open ranjit84 opened 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");
com.android.volley.error.NoConnectionError: java.io.EOFException Request - [ ] http://xx.xxx.xx.xx:xxxx/user/teacher/ 0x2a876489 NORMAL null
SimpleMultiPartRequest request = new SimpleMultiPartRequest(Request.Method.POST, Constants.URL_TEACHER_ADD, this, this);