mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Reset since_id if twitter tells us its invalid
This commit is contained in:
parent
903a123049
commit
35cbcb3345
@ -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);
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user