Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TwitterException: Unable to login [closed]

I have "login With Twitter" button in my application.

yesterday I log-in with twitter it perfectly works.

But today it doesn't. I am attaching my log with same question .

01-15 14:47:44.812: W/System.err(11435): 403:The request is understood, but it has been 
                    refused. An accompanying error message will explain why. This code 
                    is used when requests are being denied due to update limits 
                    (https://support.twitter.com/articles/15364-about-twitter-limits-
                    update-api-dm-and-following).

01-15 14:47:44.812: W/System.err(11435): Relevant discussions can be found on the 
                    Internet at:
01-15 14:47:44.812: W/System.err(11435): http://www.google.co.jp/search?q=10f5ada3 or
01-15 14:47:44.812: W/System.err(11435): http://www.google.co.jp/search?q=e574402b
01-15 14:47:44.812: W/System.err(11435): TwitterException{exceptionCode=[10f5ada3- 
                    e574402b], statusCode=403, message=null, code=-1, retryAfter=-1, 
                    rateLimitStatus=null, version=3.0.3}ent.java:828)
011514:47:44.812:W/System.err(11435):
               twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:177)

01-15 14:47:44.812: W/System.err(11435):    at   
             twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:98)
01-15 14:47:44.812: W/System.err(11435): 
  attwitter4j.auth.OAuthAuthorization.getOAuthRequestToken(OAuthAuthorization.java:122) 



01-15 14:47:44.812: W/System.err(11435): at  
    twitter4j.auth.OAuthAuthorization.getOAuthRequestToken(OAuthAuthorization.java:104)

01-15 14:47:44.812: W/System.err(11435): at
twitter4j.TwitterBaseImpl.getOAuthRequestToken(TwitterBaseImpl.java:281)

like image 527
Harshad07 Avatar asked Nov 30 '22 19:11

Harshad07


2 Answers

Upgrade your twitter4j library to twitter4j-core-3.0.5.jar. I was facing the same problem and solved it by upgrading the library.

like image 137
user3198446 Avatar answered Dec 10 '22 11:12

user3198446


It turns out Twitter from January 14th, 2014 forces API calls to made through SSL, if you use standard HTTP you will get the error you are seeing. This matches the timeframe you mention.

https://dev.twitter.com/discussions/24239

https://twitter.com/twitterapi/status/422807297048326144

like image 37
s1m3n Avatar answered Dec 10 '22 12:12

s1m3n