Github rate limit error HACS

For the latest version, yes that is correct.

Does it? It doesn’t seem to and my rate limit monitor using HACS only goes up as per the above history graph.

Adding my two cents here - I recently deployed a new installation of Home Assistant and ran into the rate limit almost immediately after configuring HACS using the new OAuth method. Based on what I’ve read here, I suspect that my issue is tied to having HACS installed on two other instances of Home Assistant, all of which is tied to the same Github account. Therefore, the assertion that this new configuration method should not be affected by a rate limit is incorrect.

2 Likes

Yes and you really need a unique GitHub account for every instance and not share it with anything else.

The real question is why?. It seems like a crazy amount of api calls to github, when really it just needs to check the status of the currently installed repositories.

Presumably a simple refresh button to reload the default repositories on-demand (instead of on a cron) would solve this?

disclaimer: i have not looked into the source of the calls in hacs, i made the huge assumption that it’s the default repository list.

HACS is most definitely broken. Brand new HA install, followed instructions, and immediately got hit with a rate limit. The super sad thing is, the repository I wanted didn’t make it to my HA before limit was hit. Am I missing something? This no longer works out of the box?

  1. Instructions seem to recommend you use OAuth method - which I did, however a quick query shows my X-RateLimit is 50. Instructions have me make a token, but not use it…

  2. “legacy configuration” would allow me to use a token, the rate limit of that token is 5000. Not 50. So this seems to be 100x better? :slight_smile: But instructions seem to suggest I not do this. I mean who wants to be in the “legacy” camp?

  3. Rate limit is hit out of the box… so I don’t get a full download of the “store”… so does this every resolve?

Log:

65df8f2169b8_home-assistant | 2021-01-17 11:40:19 ERROR (MainThread) [custom_components.hacs] KTibow/lovelace-light-soft-ui-theme - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:19 ERROR (MainThread) [custom_components.hacs] mikosoft83/hass-windows10-themes - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:19 ERROR (MainThread) [custom_components.hacs] myleskeeffe/clear-theme-dark-vibrant - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:19 ERROR (MainThread) [custom_components.hacs] naofireblade/clear-theme - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:22 ERROR (MainThread) [custom_components.hacs] naofireblade/clear-theme-dark - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:22 ERROR (MainThread) [custom_components.hacs] Nihvel/your_name - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:22 ERROR (MainThread) [custom_components.hacs] orickcorreia/caule-themes-pack-1 - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:23 ERROR (MainThread) [custom_components.hacs] pbeckcom/green_slate_theme - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:23 ERROR (MainThread) [custom_components.hacs] wowgamr/animated-weather-card - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:23 ERROR (MainThread) [custom_components.hacs] Poeschl/slate_red - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:23 ERROR (MainThread) [custom_components.hacs] seangreen2/slate_theme - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:23 ERROR (MainThread) [custom_components.hacs] hacs/integration - GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 11:40:28 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.RUNNING
65df8f2169b8_home-assistant | 2021-01-17 12:05:45 INFO (MainThread) [custom_components.hacs] HACS is ratelimited, repository updates will resume later.
65df8f2169b8_home-assistant | 2021-01-17 12:05:45 ERROR (MainThread) [custom_components.hacs] <Integration hacs/integration> GitHub Ratelimit error
65df8f2169b8_home-assistant | 2021-01-17 12:05:45 ERROR (MainThread) [custom_components.hacs] hacs/integration - GitHub Ratelimit error
1 Like

The rate limit is 5000

I’m not sure I understand your comment. Github reports 50 for user account, 5000 for token (which isn’t used by HACS if you follow instructions)…

Are you referring to HACS’s own limit? Or the token that isn’t used? Or perhaps you are saying GitHub has higher limit for user that isn’t reflected on login?

1 Like

The oauth has the same number of api calls as the token.

2 Likes

Same here.
Just done a fresh new install of HACS following all of the instructions and instantly got rate limited on github.
Something needs changing on the instructions for installation/configuration.

1 Like

I’m pretty sure that @DavidFW1960 is correct when he says that the OAuth also has 5000 rate limit.
@Dornquast could be that you didn’t pass your token when you queried the api rates? That would return 50 as the request would be unauthenticated.

This aside, I still feel that HACS should not be making that many api calls to github per day, it’s excessive by anyone’s standards.

1 Like

If you run HA Supervised or HA OS in the supervisor side panel it tells you how many API calls are left (in the HACS section). When I first started having this issue, I wa using the token for some other sensors as well and it was causing major issues so I made a new github account just for the purpose of using HACE. I made a sensor to track API calls and show a history graph. When I configured to use Oauth instead of the token, the behaviour of the sensor and graph was unchanged. The sensor agrees with the supervisor panel for number of remaining API calls and the limit is 5000 calls.

It’s not supposed to happen but every day I hit the 5000 at least once… maybe 5004 or something like that. Then I see the rate limit error. HACS is supposed to stop requesting data from github when the api calls available is 4900. I am tracking maybe 80+ repos as I added a lot of the themes. Anyway, it’s not a big problem… stuff will only really break if you use the same token for say rest sensors as well that make github calls… then it can break hard.

1 Like

If you follow instructions, no token is required as you’re using oauth process whereby it has it’s token… I used oauth.

My point was, upon install, it’s exceeding the limit before you’ve added your first “store” item.

2 Likes

Latest HACS is doing a max of ~4000 calls now once a day and normally only 1 call an hour now… Check this out…

Just installed HACS following all the instructions on a fresh install and instantly got rate limited.

2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] pfunkmallone/HACS-camect-custom_card - GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] <Plugin PiotrMachowski/Home-Assistant-Lovelace-HTML-Jinja2-Template-card> GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] PiotrMachowski/Home-Assistant-Lovelace-HTML-Jinja2-Template-card - GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] <Plugin PiotrMachowski/Home-Assistant-Lovelace-Local-Conditional-card> GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] PiotrMachowski/Home-Assistant-Lovelace-Local-Conditional-card - GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] <Plugin PiotrMachowski/lovelace-google-keep-card> GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] PiotrMachowski/lovelace-google-keep-card - GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] <Plugin PiotrMachowski/lovelace-html-card> GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] PiotrMachowski/lovelace-html-card - GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] <Plugin PiotrMachowski/lovelace-xiaomi-vacuum-map-card> GitHub Ratelimit error
2021-02-10 12:22:02 ERROR (MainThread) [custom_components.hacs] PiotrMachowski/lovelace-xiaomi-vacuum-map-card - GitHub Ratelimit error
2021-02-10 12:22:03 ERROR (MainThread) [custom_components.hacs] <Plugin postlund/search-card> GitHub Ratelimit error
2021-02-10 12:22:03 ERROR (MainThread) [custom_components.hacs] postlund/search-card - GitHub Ratelimit error
2021-02-10 12:22:03 ERROR (MainThread) [custom_components.hacs] <Plugin r-renato/ha-card-waze-travel-time> GitHub Ratelimit error
2021-02-10 12:22:03 ERROR (MainThread) [custom_components.hacs] r-renato/ha-card-waze-travel-time - GitHub Ratelimit error
2021-02-10 12:22:04 ERROR (MainThread) [custom_components.hacs] <Plugin r-renato/ha-card-weather-conditions> GitHub Ratelimit error
2021-02-10 12:22:04 ERROR (MainThread) [custom_components.hacs] r-renato/ha-card-weather-conditions - GitHub Ratelimit error
2021-02-10 12:22:04 ERROR (MainThread) [custom_components.hacs] <Plugin rccoleman/lovelace-lamarzocco-config-card> GitHub Ratelimit error
2021-02-10 12:22:04 ERROR (MainThread) [custom_components.hacs] rccoleman/lovelace-lamarzocco-config-card - GitHub Ratelimit error
2021-02-10 12:22:04 ERROR (MainThread) [custom_components.hacs] <Plugin reptilex/tesla-style-solar-power-card> GitHub Ratelimit error
2021-02-10 12:22:04 ERROR (MainThread) [custom_components.hacs] reptilex/tesla-style-solar-power-card - GitHub Ratelimit error
2021-02-10 12:22:05 ERROR (MainThread) [custom_components.hacs] <Plugin RodBr/miflora-card> GitHub Ratelimit error
2021-02-10 12:22:05 ERROR (MainThread) [custom_components.hacs] RodBr/miflora-card - GitHub Ratelimit error
2021-02-10 12:22:05 ERROR (MainThread) [custom_components.hacs] <Plugin RomRider/apexcharts-card> GitHub Ratelimit error
2021-02-10 12:22:05 ERROR (MainThread) [custom_components.hacs] RomRider/apexcharts-card - GitHub Ratelimit error
2021-02-10 12:22:06 ERROR (MainThread) [custom_components.hacs] <Plugin royto/logbook-card> GitHub Ratelimit error
2021-02-10 12:22:06 ERROR (MainThread) [custom_components.hacs] royto/logbook-card - GitHub Ratelimit error
2021-02-10 12:22:06 ERROR (MainThread) [custom_components.hacs] <Plugin rsnodgrass/water-heater-card> GitHub Ratelimit error
2021-02-10 12:22:06 ERROR (MainThread) [custom_components.hacs] rsnodgrass/water-heater-card - GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] <Plugin Savjee/button-text-card> GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] Savjee/button-text-card - GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] <Plugin sbryfcz/harmony-card> GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] sbryfcz/harmony-card - GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] <Plugin sdelliot/pie-chart-card> GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] sdelliot/pie-chart-card - GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] <Plugin Sian-Lee-SA/honeycomb-menu> GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] Sian-Lee-SA/honeycomb-menu - GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] <Plugin SNoof85/lovelace-tempometer-gauge-card> GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] SNoof85/lovelace-tempometer-gauge-card - GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] <Plugin sopelj/lovelace-kanji-clock-card> GitHub Ratelimit error
2021-02-10 12:22:07 ERROR (MainThread) [custom_components.hacs] sopelj/lovelace-kanji-clock-card - GitHub Ratelimit error
2021-02-10 12:22:08 ERROR (MainThread) [custom_components.hacs] <Plugin TarheelGrad1998/gallery-card> GitHub Ratelimit error
2021-02-10 12:22:08 ERROR (MainThread) [custom_components.hacs] TarheelGrad1998/gallery-card - GitHub Ratelimit error
2021-02-10 12:22:08 ERROR (MainThread) [custom_components.hacs] <Plugin tcarlsen/lovelace-light-with-profiles> GitHub Ratelimit error
2021-02-10 12:22:08 ERROR (MainThread) [custom_components.hacs] tcarlsen/lovelace-light-with-profiles - GitHub Ratelimit error
2021-02-10 12:22:09 ERROR (MainThread) [custom_components.hacs] <Plugin TheLastProject/lovelace-media-art-background> GitHub Ratelimit error
2021-02-10 12:22:09 ERROR (MainThread) [custom_components.hacs] TheLastProject/lovelace-media-art-background - GitHub Ratelimit error
2021-02-10 12:22:09 ERROR (MainThread) [custom_components.hacs] <Plugin TheLastProject/lovelace-valetudo-map-card> GitHub Ratelimit error
2021-02-10 12:22:09 ERROR (MainThread) [custom_components.hacs] TheLastProject/lovelace-valetudo-map-card - GitHub Ratelimit error
2021-02-10 12:22:10 ERROR (MainThread) [custom_components.hacs] <Plugin tholgir/TodoIst-Task-List> GitHub Ratelimit error
2021-02-10 12:22:10 ERROR (MainThread) [custom_components.hacs] tholgir/TodoIst-Task-List - GitHub Ratelimit error
2021-02-10 12:22:10 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-auto-entities> GitHub Ratelimit error
2021-02-10 12:22:10 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-auto-entities - GitHub Ratelimit error
2021-02-10 12:22:11 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-badge-card> GitHub Ratelimit error
2021-02-10 12:22:11 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-badge-card - GitHub Ratelimit error
2021-02-10 12:22:11 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-card-tools> GitHub Ratelimit error
2021-02-10 12:22:11 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-card-tools - GitHub Ratelimit error
2021-02-10 12:22:11 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-card-mod> GitHub Ratelimit error
2021-02-10 12:22:11 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-card-mod - GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-dummy-entity-row> GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-dummy-entity-row - GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-fold-entity-row> GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-fold-entity-row - GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-gap-card> GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-gap-card - GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-gui-sandbox> GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-gui-sandbox - GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-hui-element> GitHub Ratelimit error
2021-02-10 12:22:12 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-hui-element - GitHub Ratelimit error
2021-02-10 12:22:13 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-layout-card> GitHub Ratelimit error
2021-02-10 12:22:13 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-layout-card - GitHub Ratelimit error
2021-02-10 12:22:13 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-more-info-card> GitHub Ratelimit error
2021-02-10 12:22:13 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-more-info-card - GitHub Ratelimit error
2021-02-10 12:22:13 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-slider-entity-row> GitHub Ratelimit error
2021-02-10 12:22:13 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-slider-entity-row - GitHub Ratelimit error
2021-02-10 12:22:14 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-state-switch> GitHub Ratelimit error
2021-02-10 12:22:14 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-state-switch - GitHub Ratelimit error
2021-02-10 12:22:14 ERROR (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-template-entity-row> GitHub Ratelimit error
2021-02-10 12:22:14 ERROR (MainThread) [custom_components.hacs] thomasloven/lovelace-template-entity-row - GitHub Ratelimit error
2021-02-10 12:22:15 ERROR (MainThread) [custom_components.hacs] <Plugin tomasrudh/analogclock> GitHub Ratelimit error
2021-02-10 12:22:15 ERROR (MainThread) [custom_components.hacs] tomasrudh/analogclock - GitHub Ratelimit error
2021-02-10 12:22:16 ERROR (MainThread) [custom_components.hacs] <Plugin tomvanswam/compass-card> GitHub Ratelimit error
2021-02-10 12:22:16 ERROR (MainThread) [custom_components.hacs] tomvanswam/compass-card - GitHub Ratelimit error
2021-02-10 12:22:16 ERROR (MainThread) [custom_components.hacs] <Plugin turbulator/pandora-cas-card> GitHub Ratelimit error
2021-02-10 12:22:16 ERROR (MainThread) [custom_components.hacs] turbulator/pandora-cas-card - GitHub Ratelimit error
2021-02-10 12:22:16 ERROR (MainThread) [custom_components.hacs] <Plugin twrecked/lovelace-hass-aarlo> GitHub Ratelimit error
2021-02-10 12:22:16 ERROR (MainThread) [custom_components.hacs] twrecked/lovelace-hass-aarlo - GitHub Ratelimit error
2021-02-10 12:22:16 ERROR (MainThread) [custom_components.hacs] <Plugin Villhellm/custom-sidebar> GitHub Ratelimit error
2021-02-10 12:22:16 ERROR (MainThread) [custom_components.hacs] Villhellm/custom-sidebar - GitHub Ratelimit error
2021-02-10 12:22:17 ERROR (MainThread) [custom_components.hacs] <Plugin Villhellm/lovelace-animated-background> GitHub Ratelimit error
2021-02-10 12:22:17 ERROR (MainThread) [custom_components.hacs] Villhellm/lovelace-animated-background - GitHub Ratelimit error
2021-02-10 12:22:17 ERROR (MainThread) [custom_components.hacs] <Plugin Villhellm/lovelace-clock-card> GitHub Ratelimit error
2021-02-10 12:22:17 ERROR (MainThread) [custom_components.hacs] Villhellm/lovelace-clock-card - GitHub Ratelimit error
2021-02-10 12:22:17 ERROR (MainThread) [custom_components.hacs] <Plugin Voxxie/lovelace-jumbo-card> GitHub Ratelimit error
2021-02-10 12:22:17 ERROR (MainThread) [custom_components.hacs] Voxxie/lovelace-jumbo-card - GitHub Ratelimit error
2021-02-10 12:22:17 ERROR (MainThread) [custom_components.hacs] <Integration hacs/integration> GitHub Ratelimit error
2021-02-10 12:22:17 ERROR (MainThread) [custom_components.hacs] hacs/integration - GitHub Ratelimit error
3 Likes

Just installed HACS and was surprised to see the 5000 (!) api requests made before it had started.

If HACS makes N requests to N different repositories at each startup, I’d say that’s a pretty serious design flaw. Does anyone know if this is preventable e.g. by configuration? Just fetch the top 100 items and don’t refresh them more than once per month (say)? The issues in the HACS github seem to be closed with the comment “you should wait”…

1 Like

It has been fixed in latest releases of HACS. Mostly<1000 now

Thanks, that’s weird I just installed the version yesterday

1 Like

Seems there are some anomalies eh?
image
I really don’t understand why this happens… Seems so inconsistent.

2 Likes

Another one from today. I have no clue why it is behaving like this. Maybe there was a HACS update that caused it last time? Ludeeus did tell me it takes 13 hours after install for it to settle down.
image