Issue 20 in java-twitter: Basic authentication is not supported

51 views
Skip to first unread message

codesite...@google.com

unread,
Jul 8, 2011, 11:59:18 AM7/8/11
to java-t...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 20 by sebastie...@gmail.com: Basic authentication is not supported
http://code.google.com/p/java-twitter/issues/detail?id=20

What steps will reproduce the problem?
1.Api api = Api.builder().username("login").password("pass").build();
api.updateStatus("This is a test message.").build().post();
2.run the previous code

What is the expected output? What do you see instead?
connection success

What version of the product are you using? On what operating system?
0.9-SNAPSHOT unbuntu10.10

Please provide any additional information below.
ATTENTION: Unable to respond to any of these challenges: {oauth=OAuth
realm="http://twitter.com"}
Exception in thread "main" java.lang.RuntimeException: Expected 200 OK.
Received 401 Unauthorized. Response:
{"errors":[{"code":53,"message":"Basic authentication is not supported"}]}.
at net.unto.twitter.TwitterHttpManager.execute(TwitterHttpManager.java:212)
at net.unto.twitter.TwitterHttpManager.post(TwitterHttpManager.java:146)
at
net.unto.twitter.methods.AbstractRequest.postJson(AbstractRequest.java:138)
at
net.unto.twitter.methods.UpdateStatusRequest.post(UpdateStatusRequest.java:71)
at com.invivoo.tweet.Tweeter.sendTweet(Tweeter.java:26)
at com.invivoo.tweet.Tweeter.main(Tweeter.java:33)

codesite...@google.com

unread,
Sep 27, 2011, 4:40:02 AM9/27/11
to java-t...@googlegroups.com

Comment #1 on issue 20 by karol.ba...@gmail.com: Basic authentication is
not supported
http://code.google.com/p/java-twitter/issues/detail?id=20

I have the same issue on windows.

codesite...@google.com

unread,
Sep 27, 2011, 10:20:18 AM9/27/11
to java-t...@googlegroups.com

Comment #2 on issue 20 by sebastie...@gmail.com: Basic authentication is
not supported
http://code.google.com/p/java-twitter/issues/detail?id=20

finally I switched to twitter4j api (http://twitter4j.org/en/index.html)
and it worked

codesite...@google.com

unread,
Sep 27, 2011, 10:28:37 AM9/27/11
to java-t...@googlegroups.com

Comment #3 on issue 20 by sebastie...@gmail.com: Basic authentication is
not supported
http://code.google.com/p/java-twitter/issues/detail?id=20

seems this api is no longer maintained.
Twitter now disallow basic authentication and require OAuth or XAuth

Reply all
Reply to author
Forward
0 new messages