diff --git a/social/twitter/27-twitter.js b/social/twitter/27-twitter.js index 4987f71d..58cb4a1f 100644 --- a/social/twitter/27-twitter.js +++ b/social/twitter/27-twitter.js @@ -374,6 +374,10 @@ module.exports = function(RED) { var res = result.body; if (res.errors) { node.error(res.errors[0].message); + if (res.errors[0].code === 44) { + // 'since_id parameter is invalid' - reset it for next time + delete opts.since_id; + } clearInterval(pollId); node.timeout_ids.push(setTimeout(function() { node.poll(interval,url,opts); diff --git a/social/twitter/package.json b/social/twitter/package.json index a86d7bdf..2c643ac0 100644 --- a/social/twitter/package.json +++ b/social/twitter/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-twitter", - "version": "1.1.1", + "version": "1.1.2", "description": "A Node-RED node to talk to Twitter", "dependencies": { "twitter-ng": "0.6.2",