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
Volley supports HTTP 401 Unauthorized response. But this response MUST include "WWW-Authenticate" header field.
Without this header, 401 response causes "com.android.volley.NoConnectionError: java.io.IOException: No authentication challenges found"
error.
For more detail : https://stackoverflow.com/a/25556453/860189
If you consume 3rd party API's and have no right to change response header, you may consider to implement your own HttpStack because of this exception thrown from HurlStack. Or better, use OkHttpStack as a HttpStack.