title: Node.js Twitter Bot returning Error: Bad Twitter streaming request: 410
body: <p>I ran the bot and it ran for about 8 hours but now it's giving the following issue as soon as I run it:</p>
  
  <pre><code>events.js:183
    throw er; // Unhandled 'error' event
    ^Error: Bad Twitter streaming request: 410
  at Object.exports.makeTwitError (C:\Users\arghya\Documents\Node-JS\Gracias\node_modules\twit\lib\helpers.js:74:13)
  at Request.&lt;anonymous&gt; (C:\Users\arghya\Documents\Node-JS\Gracias\node_modules\twit\lib\streaming-api-connection.js:96:29)
  at emitOne (events.js:121:20)
  at Request.emit (events.js:211:7)
  at IncomingMessage.&lt;anonymous&gt; (C:\Users\arghya\Documents\Node-JS\Gracias\node_modules\request\request.js:1083:12)
  at Object.onceWrapper (events.js:313:30)
  at emitNone (events.js:111:20)
  at IncomingMessage.emit (events.js:208:7)
  at endReadableNT (_stream_readable.js:1064:12)
  at _combinedTickCallback (internal/process/next_tick.js:138:11)
  at process._tickCallback (internal/process/next_tick.js:180:9)
  </code></pre>
  
  <p>You can refer the code <a href="https://github.com/arghyadeep-k/Gracias/blob/master/app.js" rel="nofollow noreferrer">here</a>.</p>
  
  <p><strong>Edit:</strong> The same code started working after a few hours. I guess it's a timeout issue from the API.</p>