highfive icon indicating copy to clipboard operation
highfive copied to clipboard

Find ways to avoid hitting the API limit

Open jdm opened this issue 9 years ago • 8 comments

Possibly alternate between two accounts for each time the webhook is invoked?

jdm avatar May 13 '16 03:05 jdm

It would be useful to log times when we hit the API limit, too.

jdm avatar May 13 '16 03:05 jdm

Could this be behind #110 and #112, since we don't know what else is causing such "unpredictability"?

wafflespeanut avatar May 18 '16 04:05 wafflespeanut

I don't see how it could be responsible for #112.

jdm avatar May 18 '16 13:05 jdm

Okay, I (must've) misread it. It shouldn't cause #112

wafflespeanut avatar May 19 '16 03:05 wafflespeanut

Are we currently going for all events? Because, then, we could associate some set of events to an account - say pull_request for "highfive" and issue for "highfive-2"?

wafflespeanut avatar May 28 '16 16:05 wafflespeanut

There's no account associated with receiving events. Highfive is in control of which account details are used with each API request it makes.

jdm avatar May 29 '16 00:05 jdm

This pops in often these days :sob:

wafflespeanut avatar Jun 22 '16 06:06 wafflespeanut

Note: rate limit responses look like a 403 Forbidden response code, with an x-ratelimit-remaining header with value 0, with a JSON response with a message field that states that the rate limit was exceeded.

jdm avatar Jun 22 '16 17:06 jdm