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

Error updating friends. Aborted. #66

Open
atomi opened this issue Jun 12, 2013 · 10 comments
Open

Error updating friends. Aborted. #66

atomi opened this issue Jun 12, 2013 · 10 comments

Comments

@atomi
Copy link

atomi commented Jun 12, 2013

Thought I would post this error here, just to make sure it's documented.
sqcncsn

Error updating friends.  Aborted.
Rate limit exceeded for friends (/friends/list), try again after
Update encountered errors (tweets).  Aborted

Thanks.
Edit: This is in v2.6.0 after upgrade to the new Twitter 1.1 API

@giana77
Copy link

giana77 commented Jun 14, 2013

I have the same bug after update to v2.6.0

@gedge
Copy link
Collaborator

gedge commented Jun 14, 2013

What I've been told is that this bug goes away (quickly!) after the update. Can you confirm?

@zigdon
Copy link
Owner

zigdon commented Jun 14, 2013

I think that is not always the case. Might be correlated with the number of
calls the friends update has to make? Larger lists take more calls, use up
more quota?

On Fri, Jun 14, 2013 at 12:44 PM, Geraint Edwards
[email protected]:

What I've been told is that this bug goes away (quickly!) after the
update. Can you confirm?


Reply to this email directly or view it on GitHubhttps://github.com//issues/66#issuecomment-19477604
.

Dan Boger

@ayust
Copy link

ayust commented Jun 14, 2013

I'm still getting it frequently (every 10-20 minutes), and it's been at least 2 days since the upgrade.

@atomi
Copy link
Author

atomi commented Jun 14, 2013

By the way, I'm following 211 people.

@ayust
Copy link

ayust commented Jun 14, 2013

I follow 162 people and have 344 followers.

@zigdon
Copy link
Owner

zigdon commented Jun 14, 2013

For reference, I'm not seeing the error, with 100 followed and 329
followers.

On Fri, Jun 14, 2013 at 3:10 PM, Amber Yust [email protected]:

I follow 162 people and have 344 followers.


Reply to this email directly or view it on GitHubhttps://github.com//issues/66#issuecomment-19484437
.

Dan Boger

@ayust
Copy link

ayust commented Jun 14, 2013

It looks like with v1.1 of the REST API, Twitter moved to a limit of 15 /friends/list calls per 15 minutes. Each call can retrieve up to 20 users.

That equates to 300 users polled per 15 minutes.

The friend poll interval appears to be 600 (10 minutes) by default. So on average, if you have more than 150 people that you're following, you'll wind up seeing the error whenever two polls fall within the same 15 minute bucket.

A partial fix for this would be to /set twitter_friends_poll 900 to ensure that only one poll will fall into each bucket. That will allow you to be following up to 300 users without seeing the error.

However, that's only a partial fix. The current API has a hard cap of 300 users per 15 minutes; anyone following more than 300 users is going to see the error no matter what poll interval they set with the current code.

@zigdon
Copy link
Owner

zigdon commented Jun 14, 2013

So short term would be to update the default friends poll to 15 minutes.
Then either disable tab completion for people with over 300 friends, get
the friends list in parts over multiple cycles, or populate the tab
completion in a different way (perhaps a limited size cache of people we
see tweet?)

On Fri, Jun 14, 2013 at 3:28 PM, Amber Yust [email protected]:

It looks like with v1.1 of the REST API, Twitter moved to a limit of 15
/friends/list calls per 15 minutes. Each call can retrieve up to 20 users.

That equates to 300 users polled per 15 minutes.

The friend poll interval appears to be 600 (10 minutes) by default. So on
average, if you have more than 150 people that you're following, you'll
wind up seeing the error whenever two polls fall within the same 15 minute
bucket.

A partial fix for this would be to /set twitter_friends_poll 900 to
ensure that only one poll will fall into each bucket. That will allow you
to be following up to 300 users without seeing the error.

However, that's only a partial fix. The current API has a hard cap of 300
users per 15 minutes; anyone following more than 300 users is going to see
the error no matter what poll interval they set with the current code.


Reply to this email directly or view it on GitHubhttps://github.com//issues/66#issuecomment-19485067
.

Dan Boger

@gedge
Copy link
Collaborator

gedge commented Dec 10, 2013

I believe I've increased the 20 figure that @ayust mentions to the max 200 in my repo. Can you try that?

It's a general rework of paging for tweets which needs wider testing, so please put your seatbelt on (I've been running it for a few weeks, now, and not noticed any problems).

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

No branches or pull requests

5 participants