Issue 18 in java-twitter: Login broken

23 views
Skip to first unread message

codesite...@google.com

unread,
Sep 3, 2010, 2:01:31 AM9/3/10
to java-t...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 18 by mark.c.e...@gmail.com: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18

Tried the example:
Api api =
Api.builder().username(cred.getLogin()).password(cred.getPassword()).build();
api.updateStatus("msg").build().post();

Won't authenticate to Twitter, instead it returns the following exception

WARN [main] (HttpMethodDirector.java:697) - Unable to respond to any of
these challenges: {oauth=OAuth realm="http://api.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 logic.TwitterNetwork.update(TwitterNetwork.java:24)
at logic.Distributor.update(Distributor.java:30)
at logic.Main.run(Main.java:40)
at logic.Main.main(Main.java:34)

Process finished with exit code 1

Using java-twitter 0.9 from maven

codesite...@google.com

unread,
Sep 3, 2010, 3:58:04 AM9/3/10
to java-t...@googlegroups.com

Comment #1 on issue 18 by u...@thomas-daily.de: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18

twitter enforces oauth and denies access via basic-auth since 1.9.2010.

codesite...@google.com

unread,
Sep 3, 2010, 10:16:23 PM9/3/10
to java-t...@googlegroups.com

Comment #2 on issue 18 by bogardwolf: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18

How can you add OAuth authenticaction?
Is there any exmaple?

codesite...@google.com

unread,
Oct 4, 2010, 4:42:05 PM10/4/10
to java-t...@googlegroups.com

Comment #3 on issue 18 by Harisingh83: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18

I am getting the same exception. Any lead?

codesite...@google.com

unread,
Oct 8, 2010, 3:06:56 AM10/8/10
to java-t...@googlegroups.com

Comment #4 on issue 18 by imavinash.singh: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18

Please provide us some example.

codesite...@google.com

unread,
Jan 10, 2011, 4:32:59 PM1/10/11
to java-t...@googlegroups.com

Comment #5 on issue 18 by josem.lo...@itesm.mx: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18

any example?

codesite...@google.com

unread,
Jan 19, 2011, 3:01:08 PM1/19/11
to java-t...@googlegroups.com

Comment #6 on issue 18 by MEHRAANU...@gmail.com: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18

i am also getting the same response...if anyone have any example please
share...

codesite...@google.com

unread,
Jan 21, 2011, 2:08:37 AM1/21/11
to java-t...@googlegroups.com

codesite...@google.com

unread,
Jan 21, 2011, 2:12:38 AM1/21/11
to java-t...@googlegroups.com

codesite...@google.com

unread,
Feb 20, 2011, 4:21:50 PM2/20/11
to java-t...@googlegroups.com

Comment #9 on issue 18 by emmanuel...@gmail.com: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18

Also had this problem, it seems its due to twitter not allowing basic auth
anymore.
Changing the HttpManager might suffice.

codesite...@google.com

unread,
Mar 1, 2011, 2:21:10 PM3/1/11
to java-t...@googlegroups.com

Comment #10 on issue 18 by nikand...@gmail.com: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18

sooo this lib is dead?

Reply all
Reply to author
Forward
0 new messages