Volley + OkHttp on Android gives error on status 200 response -
when make request volley goes , stringrequest goes onresponse.
but when switch volley + okhttp combination, request goes through, receive same response before following error message:
e/volley﹕ [122319] basicnetwork.performrequest: unexpected response code 200 <my request url> java.io.ioexception: closed com.android.volley.networkerror: java.io.ioexception: closed @ com.android.volley.toolbox.basicnetwork.performrequest(basicnetwork.java:182) @ com.android.volley.networkdispatcher.run(networkdispatcher.java:114) caused by: java.io.ioexception: closed @ okio.realbufferedsource$1.read(realbufferedsource.java:345) @ java.io.inputstream.read(inputstream.java:162) @ com.android.volley.toolbox.basicnetwork.entitytobytes(basicnetwork.java:254) @ com.android.volley.toolbox.basicnetwork.performrequest(basicnetwork.java:130) at com.android.volley.networkdispatcher.run(networkdispatcher.java:114)
im using https://gist.github.com/bryanstern/4e8f1cb5a8e14c202750 okhttpstack volley.
i haven't had time investigate running same issue when using emulator connected through proxy (charles). me problem goes away when test without proxy or on device.
Comments
Post a Comment