gpt4 book ai didi

java - 为什么 twitter API 会抛出这个错误?

转载 作者:行者123 更新时间:2023-11-30 07:57:57 28 4
gpt4 key购买 nike

错误消息表明我的“请求因更新限制而被拒绝”。但此帐户在过去 24 小时内未发布任何推文,并且还显示 retryAfter=-1。我用 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)

最佳答案

代码 261 表示 API token 已暂停。只需 10 分钟就可以对暂停提出上诉并让一切恢复正常。

关于java - 为什么 twitter API 会抛出这个错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40826934/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com