私はMGTwitterEngineを使用しており、画像だけでなくステータスの投稿にもupdate_with_mediaapi呼び出しを使用しています。時々動作しますが、エラーコード403のエラーメッセージが表示されます。
ツイッターからメッセージが届いていますが、
equest A281E76C-889C-4E79-B8CE-B8D9B89CAD5D failed with error: Error Domain=HTTP Code=403 "The operation couldn’t be completed. (HTTP error 403.)"
headers for failed response: {
"Cache-Control" = "no-cache, no-store, must-revalidate, pre-check=0, post-check=0";
Connection = "Keep-Alive";
"Content-Encoding" = gzip;
"Content-Length" = 146;
"Content-Type" = "application/xml; charset=utf-8";
Date = "Wed, 09 May 2012 13:59:18 GMT";
Expires = "Tue, 31 Mar 1981 05:00:00 GMT";
"Keep-Alive" = "timeout=15, max=100";
"Last-Modified" = "Wed, 09 May 2012 13:59:17 GMT";
Pragma = "no-cache";
Server = hi;
"Set-Cookie" = "k=121.242.223.26.1336571957410684; path=/; expires=Wed, 16-May-12 13:59:17 GMT; domain=.twitter.com, guest_id=v1%3A133657195794826993; domain=.twitter.com; path=/; expires=Sat, 10-May-2014 01:59:17 GMT, dnt=; domain=.twitter.com; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT, lang=en; path=/, lang=en; path=/, lang=en; path=/, lang=en; path=/, twid=u%3D309516512%7Ccj5mm3XKJjrOylGjj9dBeiIYQXM%3D; domain=.twitter.com; path=/; secure, _twitter_sess=BAh7CToPY3JlYXRlZF9hdGwrCMWS5TE3AToHaWQiJWIxYTFiNjkyYWFhMzA4%250AN2E3MDZlZmY0MWE4MmZlMDgzIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsAOgxjc3JmX2lkIiUzNzg5%250AOGJhN2Q4M2MzY2NkODZiYmI0OGI1MjFkMzI3Ng%253D%253D--d5860bbfc91c1a86b279feeb0a5f6a902809c18a; domain=.twitter.com; path=/; HttpOnly";
Status = "403 Forbidden";
Vary = "Accept-Encoding";
"X-Access-Level" = "read-write";
"X-Action-Name" = "update_with_media";
"X-Controller-Class" = "Api::StatusController";
"X-Frame-Options" = SAMEORIGIN;
"X-MID" = 10eaf9e95fb949887d309c590873aa70188770d4;
"X-MediaRateLimit-Class" = photos;
"X-MediaRateLimit-Limit" = 30;
"X-MediaRateLimit-Remaining" = 30;
"X-MediaRateLimit-Reset" = 1336658357;
"X-Runtime" = "0.07889";
"X-Transaction" = ecd0661ac173c9ab;
"X-Transaction-Mask" = a6183ffa5f8ca943ff1b53b5644ef1141757cb62;
}
この場合、何をすべきかわかりません。
Twitterのドキュメントでは、403エラーは重複したツイートに対するものですが、初めてツイートしています。
前もって感謝します。