Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Release Bell
  3. Out of GitHub API rate limit

Out of GitHub API rate limit

Scheduled Pinned Locked Moved Solved Release Bell
5 Posts 3 Posters 1.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SmartFinnS Offline
      SmartFinnS Offline
      SmartFinn
      wrote on last edited by
      #1

      Hi,
      after upgrade Release Bell to v1.7.0 I faced with GitHub API limit exceeded:

      $ > date +%s
      1622226172  # Fri, 28 May 2021 21:22:52 +0300
      $ > curl -v -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/
      ...
      < x-ratelimit-limit: 5000
      < x-ratelimit-remaining: 0
      < x-ratelimit-reset: 1622229106  # Fri, 28 May 2021 22:11:46 +0300
      < x-ratelimit-used: 5005
      < x-ratelimit-resource: core
      ...
      

      I have starred 177 repos of which only 130 have tags/releases
      (see https://github.com/SmartFinn?tab=stars)

      Is it possible to reduce API calls?

      girishG 1 Reply Last reply
      0
      • SmartFinnS SmartFinn

        Hi,
        after upgrade Release Bell to v1.7.0 I faced with GitHub API limit exceeded:

        $ > date +%s
        1622226172  # Fri, 28 May 2021 21:22:52 +0300
        $ > curl -v -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/
        ...
        < x-ratelimit-limit: 5000
        < x-ratelimit-remaining: 0
        < x-ratelimit-reset: 1622229106  # Fri, 28 May 2021 22:11:46 +0300
        < x-ratelimit-used: 5005
        < x-ratelimit-resource: core
        ...
        

        I have starred 177 repos of which only 130 have tags/releases
        (see https://github.com/SmartFinn?tab=stars)

        Is it possible to reduce API calls?

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by girish
        #2

        @smartfinn Indeed, we have been seeing this in our installation as well. Debugging. It seems something related to the latest release 1.7.0.

        nebulonN 1 Reply Last reply
        0
        • girishG girish

          @smartfinn Indeed, we have been seeing this in our installation as well. Debugging. It seems something related to the latest release 1.7.0.

          nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #3

          I've tried to fix it now, it is currently deployed to our internal instance to see how it behaves, before we make a package release.

          SmartFinnS 1 Reply Last reply
          3
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            The latest package release now has a few fixes to workaround the rate-limits (5000 requests per hour):

            • Remove unnecessary extra requests by using the local database better
            • Randomize request order to eventually catch all releases if
            • Less parallel requests
            • Take rate-limit reset time into account when to retry

            Hope this improves the situation.

            1 Reply Last reply
            0
            • nebulonN nebulon

              I've tried to fix it now, it is currently deployed to our internal instance to see how it behaves, before we make a package release.

              SmartFinnS Offline
              SmartFinnS Offline
              SmartFinn
              wrote on last edited by
              #5

              @nebulon thank you, the API calls are dramatically reduced.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search