Github rate limit error HACS

When you click that link the Oauth page lists the permissions you are granting.


ah-ha this one. It’s good that the scope is only public information. ok…

I just hit this issue today as well, completely fresh install of HA and HACS. I assume this is due to HACS pulling information for every supported integration? If so can we not have a mode where that pull is done only when the integration name is entered into search or something similar? I literally only want to install a single integration yet I’m locked out of doing so due to HACS pulling info on all integrations.

Hi I just installed HA with HACS for the first time. Registered HACS with OAuth as described on the instructions. Immediately hit the rate limit at 5pm. It’s now 9pm still shows the ratelimited error. What should I do?

Same issue here after the first install.

Looks like you can get a paid github account for more api requests per hour. or you can be patient
https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting

Made an account to also say I am experiencing the same issue with a clean HA and HACS install. I still have the same error after 24 hours, though. Granted maybe the limit was hit again while I was not able to access HA or HACS.

1 Like

When/if I hit the limit it only affects HACS. If you use that HACS Github API account for say rest sensors or anything else when you get rate limited it can cause HA to be very slow to respond at times so don’t use that github api for anything else and it will only affect hacs updates. If you can’t access HA it’s most probably unrelated to HACS.

I meant more so maybe the API was used periodically by random services that simply exist, not so much I set it up to be used by things outside of HACS. I only configured it to the extent of the install tutorial. Ironically after I made that post however my limit had expired. That still would have put it at about 24 hours I believe. Also, my bad wording again, I did not mean it (API /or HACS) made HA inaccessible, just that I do not have remote abilities currently configured so I was at work and didn’t have a way to mess with everything further, lol.

I was just trying to setup a HAOS VM to test somethings with HACS. I also ran in to this error. This is a fresh install and it was the first thing that i installed. I have not done anything else but installing it and setting it up and connecting it with github.

2021-03-23 19:56:20 ERROR (MainThread) [custom_components.hacs] <Integration ualex73/monitor_docker> Could not read manifest.json [GitHub Ratelimit error]
2021-03-23 19:56:20 ERROR (MainThread) [custom_components.hacs] Verbalinsurection/next_rocket_launch - GitHub Ratelimit error
2021-03-23 19:56:20 ERROR (MainThread) [custom_components.hacs] vanstinator/hass-raincloud - GitHub Ratelimit error
2021-03-23 19:56:20 ERROR (MainThread) [custom_components.hacs] <Integration uvjustin/alarmdotcom> Could not read manifest.json [GitHub Ratelimit error]
2021-03-23 19:56:24 ERROR (MainThread) [custom_components.hacs] vigonotion/hass-simpleicons - GitHub Ratelimit error
2021-03-23 19:56:24 ERROR (MainThread) [custom_components.hacs] vinteo/hass-opensprinkler - GitHub Ratelimit error
2021-03-23 19:56:24 ERROR (MainThread) [custom_components.hacs] vlumikero/home-assistant-securitas - GitHub Ratelimit error
2021-03-23 19:56:24 ERROR (MainThread) [custom_components.hacs] walthowd/ha-automower - GitHub Ratelimit error
2021-03-23 19:56:24 ERROR (MainThread) [custom_components.hacs] websylv/homeassistant-meteoswiss - GitHub Ratelimit error
2021-03-23 19:56:24 ERROR (MainThread) [custom_components.hacs] willholdoway/hifiberry - GitHub Ratelimit error
2021-03-23 19:56:25 ERROR (MainThread) [custom_components.hacs] wimb0/home-assistant-saj-modbus - GitHub Ratelimit error
2021-03-23 19:56:25 ERROR (MainThread) [custom_components.hacs] WolfRevo/climate.spzb0001_thermostat - GitHub Ratelimit error
2021-03-23 19:56:25 ERROR (MainThread) [custom_components.hacs] xirixiz/homeassistant-afvalwijzer - GitHub Ratelimit error
2021-03-23 19:56:25 ERROR (MainThread) [custom_components.hacs] xlcnd/meteoalarmeu - GitHub Ratelimit error
2021-03-23 19:56:25 ERROR (MainThread) [custom_components.hacs] xMrVizzy/Minecraft-Version - GitHub Ratelimit error
2021-03-23 19:56:25 ERROR (MainThread) [custom_components.hacs] xMrVizzy/Philips-AirPurifier - GitHub Ratelimit error
2021-03-23 19:56:25 ERROR (MainThread) [custom_components.hacs] xraver/mercedes_me_api - GitHub Ratelimit error
2021-03-23 19:56:25 ERROR (MainThread) [custom_components.hacs] youdroid/home-assistant-couchpotato - GitHub Ratelimit error
2021-03-23 19:56:25 ERROR (MainThread) [custom_components.hacs] youdroid/home-assistant-gitea - GitHub Ratelimit error
2021-03-23 19:56:29 ERROR (MainThread) [custom_components.hacs] youdroid/home-assistant-sickchill - GitHub Ratelimit error
2021-03-23 19:56:29 ERROR (MainThread) [custom_components.hacs] zachowj/hass-node-red - GitHub Ratelimit error
2021-03-23 19:56:29 ERROR (MainThread) [custom_components.hacs] zigul/HomeAssistant-CEZdistribuce - GitHub Ratelimit error
2021-03-23 19:56:29 ERROR (MainThread) [custom_components.hacs] 3ative/3ative-blue-theme - GitHub Ratelimit error
2021-03-23 19:56:30 ERROR (MainThread) [custom_components.hacs] 78wesley/Darkish-Theme - GitHub Ratelimit error
2021-03-23 19:56:30 ERROR (MainThread) [custom_components.hacs] aFFekopp/dark_teal - GitHub Ratelimit error
2021-03-23 19:56:30 ERROR (MainThread) [custom_components.hacs] aFFekopp/noctis - GitHub Ratelimit error
2021-03-23 19:56:30 ERROR (MainThread) [custom_components.hacs] am80l/sundown - GitHub Ratelimit error

but it continues for every repository that are included in the base installation of HACS.

UPDATE:

After some restarts it seems to have solved it self. But there is definitely and issue here.

1 Like

There’s something else going on with HACS. It’s telling me, like everyone else, that it’s rate limited and it’ll clear itself up in an hour, but it’s been well over an hour and when I run the curl command to check my rate limits, this is what I see:

x-github-media-type: github.v3; format=json
x-ratelimit-limit: 5000
x-ratelimit-remaining: 4999
x-ratelimit-reset: 1616582804
x-ratelimit-used: 1

So there’s definitely something wrong with HACS in that it thinks it’s being rate limited, even though it’s not, on top of the fact that it was/is using 5000 calls per hour.

I’m having the same issue as @BRTPOB

I believe it’s documented right now:
https://hacs.xyz/docs/faq/initial_startup/

2 Likes

I just started a discussion about a feature request to implement a default-list during the first start up to avoid running into the rate limit error.

If you want to take part or find it a good idea, here you go: :slight_smile:
https://github.com/hacs/integration/discussions/1991

Hi,
I just installed HA with HACS for the first time. Registered HACS with OAuth as described on the instructions. Immediately hit the rate limit and stuck there since 2 hours.
Will it eventually loosen up??

It will! :slight_smile: Open your browser, open Github and log-in. After logging in, call this page: https://api.github.com/rate_limit. You will see how much of your traffic is used, and when it will “re-open”. The timestamp you get can be converted here: https://www.unixtimestamp.com/

1 Like

Hi,
i’m stuck with the same problem.
Just installed ha and HACS, only installed duckdns, so fresh and clen installation.
I’ve installed hacs with oauth and suddenly hit rate limit error.
Then created one token, and obtained rate limit error the same.
this is the result of the rate limit with authentication.

curl -u USERNAME-H "Accept: application/vnd.github.v3+json" Https://api.github.com/rate_limit
Enter host password for user 'USERNAME':
{
  "resources": {
    "core": {
      "limit": 60,
      "used": 4,
      "remaining": 56,
      "reset": 1617460406
    },
    "search": {
      "limit": 10,
      "used": 0,
      "remaining": 10,
      "reset": 1617458832
    },
    "graphql": {
      "limit": 0,
      "used": 0,
      "remaining": 0,
      "reset": 1617462372
    },
    "integration_manifest": {
      "limit": 5000,
      "used": 0,
      "remaining": 5000,
      "reset": 1617462372
    },
    "source_import": {
      "limit": 5,
      "used": 0,
      "remaining": 5,
      "reset": 1617458832
    },
    "code_scanning_upload": {
      "limit": 60,
      "used": 0,
      "remaining": 60,
      "reset": 1617462372
    }
  },
  "rate": {
    "limit": 60,
    "used": 4,
    "remaining": 56,
    "reset": 1617460406
  }
}

In this way hacs is unusable, it’12 hours i’m unable to install anything.
Does someone has the same problem and knows how to obtain the 5000 rate limit?
Thans in advance

Ok, i found the solution. I leave it here for other having the same problem.

I installed hacs and configured oauth via interface.
This was always ratelimited.

I deleted hacs directory in /config/.storage
Configured hacs with the token in configuration.yaml.
Restart HA
The problem has been solved for me.

4 Likes

Thank you!

Work’s great :smile:

I don’t understand the problem… You used 0 of 5000 calls according to the posted limits. I’d say maybe tou didn’t auth correctly. The Oauth and the configuration token use the same API calls so not sure what is going on with your install. I have no issues with the Oauth token.