Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealing with rate limits #5

Open
karllhughes opened this issue Jul 9, 2018 · 0 comments
Open

Dealing with rate limits #5

karllhughes opened this issue Jul 9, 2018 · 0 comments

Comments

@karllhughes
Copy link

I seeded a few users and ran add-followers.js. Worked for a while (I got ~1100 people to follow saved to the DB) then threw a rate limit-related error:

{ code: 88, message: 'Rate limit exceeded.' }
unhandledRejection ReferenceError: i is not defined
    at Object.follow (/app/lib/tasks.js:37:9)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Same thing happened when I ran the follow.js command.

I'm guessing this isn't a huge deal since the cron job will run these commands again every day, so eventually it will get all the accounts followed, but is there a more elegant way we could deal with this? Would you be interested in entertaining a "back off" approach? Has it been tried and scrapped already?

Happy to make a PR once we have a better idea of what to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant