After several successful tweets, it started to send error again.
I use media_id_string.
Error Domain=STTwitterTwitterErrorDomain Code=324 "Not valid video" UserInfo={NSLocalizedDescription=Not valid video, NSUnderlyingError=0x174c4a470 {Error Domain=STHTTPRequest Code=400 "HTTP Status 400: Bad Request" UserInfo={headers=<CFBasicHash 0x175a7d280 [0x1a73c3bb8]>{type = immutable dict, count = 20,
entries =>
0 : Content-Encoding = gzip
1 : Set-Cookie = <CFString 0x1744247e0 [0x1a73c3bb8]>{contents = "lang=ru; Path=/, guest_id=v1%3A149399413578354278; Domain=.twitter.com; Path=/; Expires=Sun, 05-May-2019 14:22:15 UTC"}
2 : Last-Modified = <CFString 0x170859e90 [0x1a73c3bb8]>{contents = "Fri, 05 May 2017 14:22:15 GMT"}
3 : Server = tsa_o
4 : Cache-Control = <CFString 0x17049c700 [0x1a73c3bb8]>{contents = "no-cache, no-store, must-revalidate, pre-check=0, post-check=0"}
5 : Strict-Transport-Security = <CFString 0x1708582d0 [0x1a73c3bb8]>{contents = "max-age=631138519"}
6 : Status = <CFString 0x170858180 [0x1a73c3bb8]>{contents = "400 Bad Request"}
8 : x-transaction = <CFString 0x17085b210 [0x1a73c3bb8]>{contents = "006c538100e45902"}
9 : x-tsa-request-body-time = 1
10 : x-response-time = 155
12 : Pragma = no-cache
21 : Content-Disposition = <CFString 0x170855c00 [0x1a73c3bb8]>{contents = "attachment; filename=json.json"}
23 : x-xss-protection = <CFString 0x17042d3e0 [0x1a73c3bb8]>{contents = "1; mode=block"}
24 : Date = <CFString 0x17085a130 [0x1a73c3bb8]>{contents = "Fri, 05 May 2017 14:22:15 GMT"}
29 : Expires = <CFString 0x170858120 [0x1a73c3bb8]>{contents = "Tue, 31 Mar 1981 05:00:00 GMT"}
33 : x-frame-options = <CFString 0x17043c4e0 [0x1a73c3bb8]>{contents = "SAMEORIGIN"}
35 : x-twitter-response-tags = <CFString 0x170858030 [0x1a73c3bb8]>{contents = "BouncerCompliant"}
36 : Content-Type = <CFString 0x1714613c0 [0x1a73c3bb8]>{contents = "application/json; charset=utf-8"}
39 : x-connection-hash = <CFString 0x171473740 [0x1a73c3bb8]>{contents = "8230738f227c47ccfae17247c7183637"}
40 : x-content-type-options = nosniff
}
, NSLocalizedDescription=HTTP Status 400: Bad Request, body={"errors":[{"code":324,"message":"Not valid video"}]}}}}