Github API Rate exceeded

Karl_Alnebratt February 2, 2018

When I connect jira to My GitHub account and add a repository and run the sync command. After a while I get:

Sync Paused: GitHub rate limit was exceeded. Syncing will automatically resume later.

 Why is this issue happening?

Our repo has about 7000 commits and 15 branches.

 

And I cant get the "Smart commits" working.

Any idea what we can do?

1 answer

0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 2, 2018

Hi Karl,

The issue you're describing sounds like what's described in DVCS Github sync failed:

Cause:

The DVCS plugin uses the eclipse git plugin to access GitHub. The git plugin from eclipse keeps track of the rate limit for a connection, but doesn't take any action if/when it reaches the limit. If the next synchronization starts before the rate limit is reset, the synchronization will fail again. When the synchronization reaches the rate limit, the currently processed message will fail and attempted to be applied in the next synchronization. 

You can find more information about GitHub rate limits in Rate limits for GitHub Apps.  Github only allows 5000 requests per hour, regardless of the source. This means, if there are any other requests that you have been sent to Github (i.e: from any other applications), the limit would be used up together.

In this case, I would recommend you engaging with GitHub to see if they can increase the API Rate Limit so that the sync can complete faster. We've had previous cases where Github temporarily boosted the rate limit for the sync to succeed.

Once that is done, restart the sync and if it still fails let me know.

Cheers,

Branden

Karl_Alnebratt February 5, 2018

Thanks


It looks like it is working. Just needed to wait until GitHub released the block.

 

/Karl

somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2018

Thanks for letting us know Karl!

Yevgen Lasman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 13, 2019

Branden McElveen, so maybe proper solution is to fix DVCS connector code and finally make it respect requests reset timestamp which is sent back by a GitHub when limit is reached?

Suggest an answer

Log in or Sign up to answer