Open xurizaemon opened 7 years ago
Does this use the Twitter API to fetch tweets and is "Error getting tweets: Error: Rate limit exceeded" caused by a recent change in the Twitter API rate limit? Taking a look at this - https://dev.twitter.com/rest/public/rate-limiting
Seeing this: "When an application exceeds the rate limit for a given API endpoint, the API will return a HTTP 429 “Too Many Requests” response code, and the following error will be returned in the response body: { "errors": [ { "code": 88, "message": "Rate limit exceeded" } ] } "
I think we'd be under the API limit generally, this is a 2-minute poll delay. But when hubot starts making that callback repeatedly, it goes over the limit.
OHHHH. OK.
https://github.com/xurizaemon/hubot-twitter-mention/blob/master/src/twitter-mention.coffee#L78
This line hooks into the robot.brain 'loaded' event, which which would make sense if it meant "when brain is loaded", but it means "when data is loaded from brain". Great! Joe you helped me see it. We can fix this 💃
cool, glad to help.
Yo. Think we can fix this in time for #CiviCon #StLouis :) ? Maybe before?
Currently Bolts is having an issue retrieving the Twitter feed.
My first though was that the setTimeout in hubot-twitter-mentions was being called for each tweet, leading to multiple timeouts per each Tweet retrieved. But that doesn't seem to be it.
The multiple "brain loaded" (which is from the MM adapter) suggests that some plugin or the MM adapter is triggering multiple robots to be created ... IDK, can't tell yet.