Twitter Api generates character limit error intermittently



I have been using a ruby backend with twitter api integrated. I could post a 1000+ characters tweet with more than 10 photos and of course it gets posted to twitter by breaking the tweets into sections of 140 characters.

However, it does fail intermittently, generating character limit error and with an auth failed message.

Can anyone help with this?


Twitter API doesn’t support splitting large messages into multiple tweets. The ruby library you’re using is doing that for you, making multiple status/update calls.

Most likely it’s making a mistake calculating characters somewhere down the line, so i’d look into the ruby code for that. I’ve a feeling it’s got something to do with some of these values being hardcoded in ruby