This one took me a full 8-10 hours to figure out. I finally discovered a solution here: https://github.com/AvianFlu/ntwitter/issues/119
If you’re using ntwitter to stream twitter updates, and all of a sudden your stream stops, yet if you run:
var creds = twitter.verifyCredentials(function(err, response) { console.log('verifying creds') console.log(err) console.log(response) });
Everything appears fine, your server time might be off. If your server time is off, you can’t authenticate properly with the streaming api because your oauth request carries a timestamp with it. Here’s what you do:
sudo ntpdate pool.ntp.org
Wow…