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

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 this issue Sep 1, 2017 · 1 comment

Comments

@ranjit84
Copy link

ranjit84 commented Sep 1, 2017

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
Copy link
Author

ranjit84 commented Sep 1, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant