The error looks like a catch-all. But, I did just figure out what caused it for me. I was generating a new tweets from existing tweets after some processing. The processing included converting the entire tweet text to lower case. The lower casing was a problem when the original tweet contained a shortened URL with caps.