Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Error: Authentication error: Unable to respond to any of these challenges: {} #2

ceefour opened this Issue · 11 comments

3 participants


The client is only for Java ME, not Java SE.

After porting to Java SE (see, it builds but I got a runtime error:

HTTP GET SENT:************&oauth_version=1.0&oauth_signature=********
2010-12-24 01:11:27 DefaultHttpClient [WARN] Authentication error: Unable to respond to any of these challenges: {}
ERROR HTTP BODY IS: {"error":{"code":4,"detail":"Invalid Cookies Error","description":"Invalid Cookies Error"},"code":4}


I'm also getting the same error. You mean it's not possible to use the library apart from Java ME? What could be the reason for that?


There are 2 forks which were SE ports:

You may to check which ones work for you


I've tried ceefour's fork, but as he said on the Readme text, it's not working.

I've tried your fork just now, I can get the RequestToken however I get this error: Server returned HTTP response code: 401 for URL:***--&oauth_signature_method=PLAINTEXT


Have you tried your fork to work with logging in with the yahoo server? Or this is still under development.


I just tried my code now and I get the same 401 error as yours. I'm damn sure this worked 6 months ago!


@aldrinm If it works before, then perhaps Yahoo has made changes with the API? The URL? Any ideas why it does not work anymore?


oh i just managed to get it working. my consumer key and secret were all wrong. please re-check the values in the YahooMessengerConstants . And use for testing it out.


I tried using TestYahoo with the updated authenticationConsumerKey and authenticationConsumerSecret still getting: HTTP response code: 401 for URL, are there any other settings that needs updating?


Make sure you are updating the YahooMessengerLibraries / src / com / yahoo / messenger / util / and this file is in the classpath first. There is another YahooMessengerConstants in the build folder. It is possible that the other one is being run instead. Or you can just make that the build file has the same contents are the src file.

Try debugging the generate http url (printed on the console) and observe the response. I normally use HttpFox on Firefox


I'm not using Firefox, I'm just running the from Eclipse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.