我在android中使用Twitter4j库进行Twitter扩展,它工作正常,但从昨天开始显示OAthNoAuthorizedException错误我不知道为什么。错误日志是
E/check.com.twitter.OAuthRequestTokenTask(341): Error during OAUth retrieve request token
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): oauth.signpost.exception.OAuthNotAuthorizedException: Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match.
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at oauth.signpost.AbstractOAuthProvider.handleUnexpectedResponse(AbstractOAuthProvider.java:239)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:189)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at oauth.signpost.AbstractOAuthProvider.retrieveRequestToken(AbstractOAuthProvider.java:69)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at check.com.twitter.OAuthRequestTokenTask.doInBackground(OAuthRequestTokenTask.java:55)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at check.com.twitter.OAuthRequestTokenTask.doInBackground(OAuthRequestTokenTask.java:1)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
04-12 20:01:29.743: E/check.com.twitter.OAuthRequestTokenTask(341): at java.lang.Thread.run(Thread.java:1096)
请帮忙。
答案 0 :(得分:0)
我认为此API版本已过期,如果发布任何新版本,请尝试使用该版本。