0

我在 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)

请帮忙。

4

1 回答 1

0

我认为这个 API 版本已经过期,如果有新版本发布,请尝试。

于 2012-04-12T15:07:19.980 回答