Error when update status with media


#1

Few days ago posting throw api was broken, i haven’t changed anything in my code.
One time per day it works normally, other times a have an error: "500 for URL: https://api.twitter.com/1.1/statuses/update_with_media.json"
but locally (from localhost) it still works normally.

I’m using twitter4j lib - version 4.0.1

Error log:
2014-05-23 11:36:30,907 DEBUG jobs-thread-7 HttpClientImpl:debug:67 - Request:
2014-05-23 11:36:30,908 DEBUG jobs-thread-7 HttpClientImpl:debug:75 - POST https://api.twitter.com/1.1/statuses/update_with_media.json
2014-05-23 11:36:30,908 DEBUG jobs-thread-7 OAuthAuthorization:debug:75 - OAuth base string: POST&https%3A%2F%2Fapi.twitter.com%2F1.1%2Fstatuses%2Fupdate_with_media.json&oauth_consumer_key%3D------------%26oauth_nonce%3D3194747814%26oauth_signature_method%3D-------------1%26oauth_timestamp%3D-------------%26oauth_token%3D-----------%26oauth_version%3D1.0
2014-05-23 11:36:30,908 DEBUG jobs-thread-7 OAuthAuthorization:debug:75 - OAuth signature: -------
2014-05-23 11:36:30,908 DEBUG jobs-thread-7 HttpClientImpl:debug:75 - Authorization: ***************************************************************************************************************************************************
2014-05-23 11:36:30,909 DEBUG jobs-thread-7 HttpClientImpl:debug:67 - X-Twitter-Client-URL: http://twitter4j.org/en/twitter4j-4.0.1.xml
2014-05-23 11:36:30,909 DEBUG jobs-thread-7 HttpClientImpl:debug:67 - X-Twitter-Client: Twitter4J
2014-05-23 11:36:30,909 DEBUG jobs-thread-7 HttpClientImpl:debug:67 - Accept-Encoding: gzip
2014-05-23 11:36:30,909 DEBUG jobs-thread-7 HttpClientImpl:debug:67 - User-Agent: twitter4j http://twitter4j.org/ /4.0.1
2014-05-23 11:36:30,909 DEBUG jobs-thread-7 HttpClientImpl:debug:67 - X-Twitter-Client-Version: 4.0.1
2014-05-23 11:36:31,214 DEBUG jobs-thread-7 HttpClientBase:debug:67 - ------Twitter4J-upload1400834190909
2014-05-23 11:36:31,215 DEBUG jobs-thread-7 HttpClientBase:debug:67 - Content-Disposition: form-data; name="status"
2014-05-23 11:36:31,215 DEBUG jobs-thread-7 HttpClientBase:debug:67 - Content-Type: text/plain; charset=UTF-8
2014-05-23 11:36:31,215 DEBUG jobs-thread-7 HttpClientImpl:debug:67 - post text
2014-05-23 11:36:31,215 DEBUG jobs-thread-7 HttpClientBase:debug:67 -
2014-05-23 11:36:31,215 DEBUG jobs-thread-7 HttpClientBase:debug:67 - ------Twitter4J-upload1400834190909
2014-05-23 11:36:31,215 DEBUG jobs-thread-7 HttpClientBase:debug:67 - Content-Disposition: form-data; name=“media[]”; filename="stream2file7075145392329382664.jpeg"
2014-05-23 11:36:31,218 DEBUG jobs-thread-7 HttpClientBase:debug:67 - Content-Type: image/jpeg
2014-05-23 11:36:31,679 DEBUG jobs-thread-7 HttpClientBase:debug:67 -
2014-05-23 11:36:31,679 DEBUG jobs-thread-7 HttpClientBase:debug:67 - ------Twitter4J-upload1400834190909
2014-05-23 11:36:31,679 DEBUG jobs-thread-7 HttpClientBase:debug:67 - Content-Disposition: form-data; name="possibly_sensitive"
2014-05-23 11:36:31,680 DEBUG jobs-thread-7 HttpClientBase:debug:67 - Content-Type: text/plain; charset=UTF-8
2014-05-23 11:36:31,680 DEBUG jobs-thread-7 HttpClientImpl:debug:67 - false
2014-05-23 11:36:31,680 DEBUG jobs-thread-7 HttpClientBase:debug:67 - ------Twitter4J-upload1400834190909
2014-05-23 11:36:31,680 DEBUG jobs-thread-7 HttpClientBase:debug:67 - Content-Disposition: form-data; name="include_entities"
2014-05-23 11:36:31,681 DEBUG jobs-thread-7 HttpClientBase:debug:67 - Content-Type: text/plain; charset=UTF-8
2014-05-23 11:36:31,681 DEBUG jobs-thread-7 HttpClientImpl:debug:67 - true
2014-05-23 11:36:31,681 DEBUG jobs-thread-7 HttpClientBase:debug:67 - ------Twitter4J-upload1400834190909–
2014-05-23 11:36:31,681 DEBUG jobs-thread-7 HttpClientBase:debug:67 -
2014-05-23 11:37:04,770 ERROR jobs-thread-7 Server returned HTTP response code: 500 for URL: https://api.twitter.com/1.1/statuses/update_with_media.json