我在我的android应用程序中集成了twitter。它很好地运行很长时间,但现在它给我错误,而我正在试图对推特进行研究。它给出以下错误:“无法获取请求令牌”并且堆栈跟踪如下。请帮我解决这个问题。安卓叽叽喳喳登录错误
02-20 19:44:09.687: D/TwitterApp(3928): Failed to get request token
02-20 19:44:09.687: W/System.err(3928): oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: Service provider responded in error: 301 (Moved Permanently)
02-20 19:44:09.687: W/System.err(3928): at oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:214)
02-20 19:44:09.687: W/System.err(3928): at oauth.signpost.AbstractOAuthProvider.retrieveRequestToken(AbstractOAuthProvider.java:69)
02-20 19:44:09.687: W/System.err(3928): at com.twitter.android.TwitterApp$2.run(TwitterApp.java:108)
02-20 19:44:09.687: W/System.err(3928): Caused by: oauth.signpost.exception.OAuthCommunicationException: Service provider responded in error: 301 (Moved Permanently)
02-20 19:44:09.687: W/System.err(3928): at oauth.signpost.AbstractOAuthProvider.handleUnexpectedResponse(AbstractOAuthProvider.java:241)
02-20 19:44:09.687: W/System.err(3928): at oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:189)
02-20 19:44:09.687: W/System.err(3928): ... 2 more
感谢 穆拉利
这是否有帮助? http://stackoverflow.com/questions/14933160/service-provider-responded-in-error-301-moved-permanently-twitter-api – MKJParekh 2013-02-20 14:21:25
谢谢它的工作正常。 – Nani 2013-02-20 14:47:40
欢迎总是先尝试在stackoverflow上找到类似的问题。 – MKJParekh 2013-02-21 05:35:26