2012-12-13 45 views
0

我最近在GooglePlay中發佈我的應用後遇到此問題。看起來,Twitter已經改變了他們的API或配置,而沒有兼容性。我正在使用Twitter4J 2.2.6。 這是關於此問題的引用鏈接,但沒有解決方案。 https://dev.twitter.com/discussions/12782錯誤的身份驗證數據215 - Twitter4J 2.2.6

12-13 11:54:53.872: W/System.err(6576): 400:The request was invalid. An accompanying error message will explain why. This is the status code that will be returned during rate limiting (https://dev.twitter.com/pages/rate-limiting). 
12-13 11:54:53.872: W/System.err(6576): {"errors":[{"message":"Bad Authentication data","code":215}]} 
12-13 11:54:53.872: W/System.err(6576): Relevant discussions can be found on the Internet at: 
12-13 11:54:53.872: W/System.err(6576):  http://www.google.co.jp/search?q=6f0f59ca or 
12-13 11:54:53.872: W/System.err(6576):  http://www.google.co.jp/search?q=3bea4a0a 
12-13 11:54:53.872: W/System.err(6576): TwitterException{exceptionCode=[6f0f59ca-3bea4a0a], statusCode=400, retryAfter=-1, rateLimitStatus=null, featureSpecificRateLimitStatus=null, version=2.2.6} 
12-13 11:54:53.872: W/System.err(6576):  at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:185) 
12-13 11:54:53.872: W/System.err(6576):  at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:65) 
12-13 11:54:53.872: W/System.err(6576):  at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:93) 
12-13 11:54:53.872: W/System.err(6576):  at twitter4j.TwitterBaseImpl.fillInIDAndScreenName(TwitterBaseImpl.java:135) 
12-13 11:54:53.872: W/System.err(6576):  at twitter4j.TwitterImpl.verifyCredentials(TwitterImpl.java:1084) 
12-13 11:54:53.872: W/System.err(6576):  at app.jp.cropnet.twitter.TwitterApp$3.run(TwitterApp.java:255) 

回答

1

嘗試使用twitter4j 2.1.1,而不是2.2.6有一些麻煩與此版本或對本tutorial 2.2.6一看被使用和它完美