Skip to content Skip to sidebar Skip to footer

Com.android.volley.noconnectionerror: Java.io.eofexception

I am using volley library for network calls.For one such call,I am getting : com.android.volley.NoConnectionError: java.io.EOFException Below is my code: public void loadSearchL

Solution 1:

After struggling for few hours, found the issue. Issue was with url.If I wanted to search "purple sweet potato",it was throwing the above error. So I constructed my url like this:

url=Constants.productListUrlStr+"?"+"_supplier"+"="+ globalProvider.contract._supplier+"&"+"main"+"="+mainval+"&"+"name"+"="+mName

String requestURL = String.format(url+"&"+"name=%s", Uri.encode(mName)); And now it works fine.

Post a Comment for "Com.android.volley.noconnectionerror: Java.io.eofexception"