お世話になっております。
twitter4jを使用してダイレクトメッセージを送信するアプリを運用しております。
3日ほど前からダイレクトメッセージを送信しても403のエラーが返却されて正常終了しないという現象が発生してしまいました。
通常のツイートやリプライなどはできるためアカウントに対しての拒否ではなさそうです。
ちょうど1年くらい前にも同様の現象が発生し、twitter4jの配布サイトへ行ったところライブラリのバージョン更新があり、去年はそれを入れ替えたことで直りましたが今回は更新もなさそうなので原因が不明です。
(そもそも去年はTwitterAPI自体の認証が強化されたためにライブラリも更新されていたかと思います)
どなたか同様の現象・解決方法をご存じの方いらっしゃいませんでしょうか?
- 追記
エラーメッセージについて、下記になります。
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 - This application is not allowed to access or delete your direct messages.
code - 93
Relevant discussions can be found on the Internet at:
http://www.google.co.jp/search?q=796590e6 or
http://www.google.co.jp/search?q=802fbd73
TwitterException{exceptionCode=[796590e6-802fbd73], statusCode=403, message=This application is not allowed to access or delete your direct messages., code=93, retryAfter=-1, rateLimitStatus=null, version=4.0.7}
リンクにあるツイッターサポートページを見たところ1日1000件のダイレクトメッセージ制限があると書いてありますが、そこまで利用した覚えはありません。
日付を跨いでも同じエラーなので別な原因なのでしょうか。
回答1件
あなたの回答
tips
プレビュー