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

Multipart throws illegal state exception state 2 #68

Open cyberformed opened 7 years ago

cyberformed commented 7 years ago

Dear Team,

I am using this library for multipart request. It throws error @runtime.

E/Volley: [5631] NetworkDispatcher.run: Unhandled exception java.lang.IllegalStateException: state: 2
                                                        java.lang.IllegalStateException: state: 2
                                                            at com.android.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:186)
                                                            at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80)
                                                            at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:905)
                                                            at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:789)
                                                            at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:443)
                                                            at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:388)
                                                            at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:501)
                                                            at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:152)
                                                            at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:97)
                                                            at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:118) 

Unable to get any solution to it.