I’m using the Twit module to open a twitter stream in NodeJS. This has been running fine for the past few months (with a few restarts after changes I’ve made - running around 2 week periods at a time) but a few hours ago it died with the error:

            throw er; // Unhandled 'error' event
    Error: connect ECONNREFUSED
        at errnoException (net.js:901:11)
        at Object.afterConnect [as oncomplete] (net.js:892:19)

Any idea why this happens? I’ve tried searching the forums but haven’t found anything useful. My code:

var Twit = require('twit');
var config = require('./config');

var T = new Twit({
	consumer_key: config.twitter.consumerKey,
	consumer_secret: config.twitter.consumerSecret,
	access_token: config.twitter.tokenKey,
	access_token_secret: config.twitter.tokenSecret

var stream ='statuses/filter', {
	track: config.trackingWord

stream.on('tweet', function(tweet) {
	//do some stuff