为什么 twitter API 会抛出这个错误? [英] Why is the twitter API throwing this error?

查看:40
本文介绍了为什么 twitter API 会抛出这个错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误消息表明我的请求因更新限制而被拒绝".但是该帐户在过去 24 小时内没有发过任何推文,并且还显示 retryAfter=-1.我用当前的稳定版和 twitter4j 的快照版本进行了尝试,但没有帮助.有人知道出了什么问题吗?

The error message suggests that my "request was denied due to update limits". But this account hasn't tweeted anythin in the last 24 hours and it also says retryAfter=-1. I tried it with the current stable and the snapshot build of twitter4j but it didn't help. Does someone know what is wrong?

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).
message - Application cannot perform write actions. Contact Twitter Platform Operations through https://support.twitter.com/forms/platform
code - 261

Relevant discussions can be found on the Internet at:
    http://www.google.co.jp/search?q=2fc5b7cb or
    http://www.google.co.jp/search?q=0f38fea7
TwitterException{exceptionCode=[2fc5b7cb-0f38fea7], statusCode=403, message=Application cannot perform write actions. Contact Twitter Platform Operations through https://support.twitter.com/forms/platform, code=261, retryAfter=-1, rateLimitStatus=null, version=4.0.5-SNAPSHOT(build: bbbd24f6c492677f65d3956ed6b74a2ae75d5bc3)}
    at twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:164)
    at twitter4j.HttpClientBase.request(HttpClientBase.java:57)
    at twitter4j.HttpClientBase.post(HttpClientBase.java:86)
    at twitter4j.TwitterImpl.post(TwitterImpl.java:1812)
    at twitter4j.TwitterImpl.updateStatus(TwitterImpl.java:218)

推荐答案

代码 261 表示 API 令牌已暂停.只需 10 分钟即可对暂停提出上诉并让一切恢复正常运行.

Code 261 means the API-token was suspended. It takes only 10 minutes to appeal the suspension and get everything up and running again.

这篇关于为什么 twitter API 会抛出这个错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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