I am using Google Volley on the Android platform.
I am having a problem in which the error parameter in onErrorResponse is returning a null n
I handle this problem manually:
Download Volley library from github and add into AndroidStudio project
Go to com.android.volley.toolbox.HurlStack class
Find setConnectionParametersForRequest(connection, request); line inside of performRequest method
And finally add this codes belew of setConnectionParametersForRequest(connection, request); line :
// for avoiding this exception : No authentication challenges found try { connection.getResponseCode(); } catch (IOException e) { e.printStackTrace(); }