为什么twitter API会抛出此错误?

时间:2021-05-27 15:39:59

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?

该错误消息表明我的“请求因更新限制而被拒绝”。但是这个帐户在过去24小时内没有发布任何内容,并且还说retryAfter = -1。我尝试使用当前的stable和twitter4j的快照构建,但它没有帮助。有人知道什么是错的吗?

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)

1 个解决方案

#1


2  

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

代码261表示API令牌已被暂停。只需10分钟即可上诉暂停,让一切恢复正常。

#1


2  

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

代码261表示API令牌已被暂停。只需10分钟即可上诉暂停,让一切恢复正常。