You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey i am also stuck with this problem.Did you find any luck.??
Here comes my Code
AsyncHttpClient mAsyncHttpClient = new AsyncHttpClient();
mAsyncHttpClient.setBasicAuth("username", "password");
org.apache.http.client.HttpResponseException: Unauthorized
I/onFailure getCustomerOrder(7107): org.apache.http.client.HttpResponseException: Unauthorized
I/onFailure(7107): {"Message":"Authorization has been denied for this request."}
I/onFailure getCustomerOrder(7107): {"Message":"Authorization has been denied for this request."}
I had the same problem. It seems that the server in these cases is not properly configured, so instead of replying to the GET/POST request by asking for credentials, it simply responds "not authorized" and shuts down. The solution is to pass the username/password in the request header itself.
I am getting the following error when I try to do a GET request to an https URL
10-13 21:36:58.372: W/DefaultRequestDirector(9029): Authentication error: Unable to respond to any of these challenges: {}
I've set the basic auth using client.setBasicAuth(), tried with and without the AuthScope with no success.
The text was updated successfully, but these errors were encountered: