TwitterException:无法登录

Har*_*d07 4 android twitter4j

我的应用程序中有"使用Twitter登录"按钮.

昨天我用twitter登录它完美无缺.

但今天它没有.我用相同的问题附上我的日志.

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)
Run Code Online (Sandbox Code Playgroud)

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

小智 12

升级你twitter4j library来twitter4j-core-3.0.5.jar.我遇到了同样的问题,并通过升级库来解决它.


s1m*_*m3n 5

事实证明Twitter从2014年1月14日起强制通过SSL进行API调用,如果您使用标准HTTP,您将收到您所看到的错误.这符合您提到的时间范围.

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

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