I am trying to work with some legacy code and have come up against an issue when using volley.
I am trying to get to an api that our main site has and it works fine for one account, but not another. I'm trying to work out what the differences might be in the request URL/headers and also what is coming back in the response, but I can't seem to find a way in the volley code to print this to the log.
The error I'm getting is
com.android.volley.NoConnectionError: java.io.IOException: No authentication challenges found
I've read around that this might be due to a 401 response, but I don't really know what that means or at least how to prove/test that. I am really confused that it works for one account and not another.
The url is slightly different as one is for our UK site and the other our AM, but other than that there is no difference.
Thanks
@SuppressWarnings("serial") public class NoConnectionError extends NetworkError { public NoConnectionError() { super(); } public NoConnectionError(Throwable reason) { super(reason); } }
and there is a comment saying /** * Error indicating that no connection could be established when performing a Volley request. */ – Gaudy