403:请求被理解,但一直拒绝微博的Andr​​oid [英] 403:The request is understood, but it has been refused Twitter Android

查看:635
本文介绍了403:请求被理解,但一直拒绝微博的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Android的鸣叫在Twitter上。现在,为了这个,我有创建dev.twitter从<应用程序和下载的示例code一href="http://chintankhetiya.word$p$pss.com/2013/07/18/sharing-text-image-in-twitter-android-example/">this链接 并更新这两个键与我的应用程序键。

现在我运行code认证账户和之后我鸣叫这鸣叫包括图像和文字两种图像是在网址定义样品code。现在,我第一次表明我的形象和文字上传成功,但是当我试图再次鸣叫它给了我403状态更新错误。

有关此我改变文本信息状态文本和图像的URL,但它仍然是给我403状态更新错误。 我有同样的code写在唯一的密钥被改变样品code。

下面是我的logcat:

  11月10号至4号:26:25.015:W / System.err的(22822):403:请求被理解,但它已被拒绝。一位随行的错误信息会解释为什么。当请求被拒绝,由于更新限制这code时(https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following)。
11月10号至四日:26:25.015:W / System.err的(22822):消息 - 错误创建状态。
11月10号至四日:26:25.015:W / System.err的(22822):code  -  189
11月10号至四日:26:25.025:W / System.err的(22822):相关讨论,可以访问Internet上找到:
11月10号至四日:26:25.025:W / System.err的(22822):http://www.google.co.jp/search?q=b2b52c28或
11月10号至四日:26:25.025:W / System.err的(22822):http://www.google.co.jp/search?q=11331d43
11月10号至四日:26:25.025:W / System.err的(22822):TwitterException {异常code = [b2b52c28-11331d43],状态code = 403,消息=错误创建状态,$ C $。 C = 189,retryAfter = -1,rateLimitStatus = NULL,版本= 3.0.3}
11月10号至四日:26:25.025:W / System.err的(22822):在twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:177)
11月10号至四日:26:25.025:W / System.err的(22822):在twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61)
11月10号至四日:26:25.025:W / System.err的(22822):在twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:98)
11月10号至四日:26:25.030:W / System.err的(22822):在twitter4j.TwitterImpl.post(TwitterImpl.java:1871)
11月10号至四日:26:25.030:W / System.err的(22822):在twitter4j.TwitterImpl.updateStatus(TwitterImpl.java:252)
11月10号至四日:26:25.030:W / System.err的(22822):在chintan.khetiya.android.Twitter_ code.Twitt_Sharing.Share_Pic_Text_Titter(Twitt_Sharing.java:126)
11月10号至四日:26:25.030:W / System.err的(22822):在chintan.khetiya.android.Twitter_$c$c.Twitt_Sharing$PostTwittTask.doInBackground(Twitt_Sharing.java:91)
11月10号至四日:26:25.030:W / System.err的(22822):在chintan.khetiya.android.Twitter_$c$c.Twitt_Sharing$PostTwittTask.doInBackground(Twitt_Sharing.java:1)
11月10号至四日:26:25.030:W / System.err的(22822):在android.os.AsyncTask $ 2.call(AsyncTask.java:287)
11月10号至四日:26:25.035:W / System.err的(22822):在java.util.concurrent.FutureTask.run(FutureTask.java:234)
11月10号至四日:26:25.035:W / System.err的(22822):在android.os.AsyncTask $ SerialExecutor $ 1.运行(AsyncTask.java:230)
11月10号至四日:26:25.040:W / System.err的(22822):在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
11月10号至四日:26:25.040:W / System.err的(22822):在java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:573)
11月10号至四日:26:25.040:W / System.err的(22822):在java.lang.Thread.run(Thread.java:856)
 

解决方案

我有同样的错误,并升级到twitter4j 3.0.5的最新版本(在写这篇文章的时候)解决了该问题。

获取最新此处<一个href="http://twitter4j.org/en/index.html#download">http://twitter4j.org/en/index.html#download

编辑:我应该说我是运行版本是twitter4j 3.0.3。因此,通过将3.0.5版或3.0.6固定的问题对我来说。

I am trying to tweet on twitter from android. Now for this i have create an application on dev.twitter and downloaded sample code from this link and update both keys with my app keys.

Now i run the code authenticate the account and after it i tweet and this tweet includes image and text both image was on URL as define in sample code. Now i first time it shows me image and text successfully uploaded but when i try to again tweet it gives me 403 status update error.

For this i change the text message "status Text" and image URL but still it is giving me "403 status" update error. I have the same code as written in sample code only keys are changed.

Here is my Logcat:

10-04 11:26:25.015: W/System.err(22822): 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).
10-04 11:26:25.015: W/System.err(22822): message - Error creating status.
10-04 11:26:25.015: W/System.err(22822): code - 189
10-04 11:26:25.025: W/System.err(22822): Relevant discussions can be found on the Internet at:
10-04 11:26:25.025: W/System.err(22822):    http://www.google.co.jp/search?q=b2b52c28 or
10-04 11:26:25.025: W/System.err(22822):    http://www.google.co.jp/search?q=11331d43
10-04 11:26:25.025: W/System.err(22822): TwitterException{exceptionCode=[b2b52c28-11331d43], statusCode=403, message=Error creating status., code=189, retryAfter=-1, rateLimitStatus=null, version=3.0.3}
10-04 11:26:25.025: W/System.err(22822):    at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:177)
10-04 11:26:25.025: W/System.err(22822):    at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61)
10-04 11:26:25.025: W/System.err(22822):    at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:98)
10-04 11:26:25.030: W/System.err(22822):    at twitter4j.TwitterImpl.post(TwitterImpl.java:1871)
10-04 11:26:25.030: W/System.err(22822):    at twitter4j.TwitterImpl.updateStatus(TwitterImpl.java:252)
10-04 11:26:25.030: W/System.err(22822):    at chintan.khetiya.android.Twitter_code.Twitt_Sharing.Share_Pic_Text_Titter(Twitt_Sharing.java:126)
10-04 11:26:25.030: W/System.err(22822):    at chintan.khetiya.android.Twitter_code.Twitt_Sharing$PostTwittTask.doInBackground(Twitt_Sharing.java:91)
10-04 11:26:25.030: W/System.err(22822):    at chintan.khetiya.android.Twitter_code.Twitt_Sharing$PostTwittTask.doInBackground(Twitt_Sharing.java:1)
10-04 11:26:25.030: W/System.err(22822):    at android.os.AsyncTask$2.call(AsyncTask.java:287)
10-04 11:26:25.035: W/System.err(22822):    at java.util.concurrent.FutureTask.run(FutureTask.java:234)
10-04 11:26:25.035: W/System.err(22822):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
10-04 11:26:25.040: W/System.err(22822):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
10-04 11:26:25.040: W/System.err(22822):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
10-04 11:26:25.040: W/System.err(22822):    at java.lang.Thread.run(Thread.java:856)

解决方案

I had this same error and upgrading to the latest version of twitter4j 3.0.5 (at the time of this writing) fixed the issue.

Get the latest here http://twitter4j.org/en/index.html#download

EDIT: I should mention that the version i was running was twitter4j 3.0.3. So by going to version 3.0.5 or 3.0.6 fixed the issue for me.

这篇关于403:请求被理解,但一直拒绝微博的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆