jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-67023] Github API usage rate limiting strategy NoThrottle is not getting used, instead it always moves to ThrottleOnOver.

Open
#1,381 0 comments 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

Jenkins Version: 2.289.3

GitHub Branch Source Plugin Version: v2.11.3

We are using enterprise github server hosted in our data center and configured correct API url. Then Jenkins Github API usage rate limiting strategy is configured to "Never check rate limit". But in logs I can see below message and also behavior is seen that it moves on to use Throttle at/near rate limit (ThrottleOnOver).

 

```
"GitHub throttling is disabled, which is not allowed for public GitHub usage so ThrottleOnOver will be used instead. To configure a different rate limiting strategy, go to "GitHub API usage" under "Configure System" in the Jenkins settings.

Jenkins is restricting GitHub API requests only when near or above the rate limit. To configure a different rate limiting strategy, such as having Jenkins attempt to evenly distribute GitHub API requests, go to "GitHub API usage" under "Configure System" in the Jenkins settings.

```

I am suspecting issue at below code line,

https://github.com/jenkinsci/github-branch-source-plugin/blob/e708675a334cf666f9a9010c2a22095e6ea2e7fa/src/main/java/org/jenkinsci/plugins/github_branch_source/ApiRateLimitChecker.java#L236

Static value of github api url (GitHubServerConfig.GITHUB_URL) is passed here instead of configured github api url.

So it always matches equals https://api.github.com to https://api.github.com at line

https://github.com/jenkinsci/github-branch-source-plugin/blob/e708675a334cf666f9a9010c2a22095e6ea2e7fa/src/main/java/org/jenkinsci/plugins/github_branch_source/ApiRateLimitChecker.java#L104

 

 

---
Originally reported by pvshewale, imported from: Github API usage rate limiting strategy NoThrottle is not getting used, instead it always moves to ThrottleOnOver.


  • status: Open
  • priority: Minor
  • component(s): github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

Jenkins Version: 2.289.3

GitHub Branch Source Plugin Version: v2.11.3

We are using enterprise github server hosted in our data center and configured correct API url. Then Jenkins Github API usage rate limiting strategy is configured to "Never check rate limit". But in logs I can see below message and also behavior is seen that it moves on to use Throttle at/near rate limit (ThrottleOnOver).

 



"GitHub throttling is disabled, which is not allowed for public GitHub usage so ThrottleOnOver will be used instead. To configure a different rate limiting strategy, go to "GitHub API usage" under "Configure System" in the Jenkins settings.

Jenkins is restricting GitHub API requests only when near or above the rate limit. To configure a different rate limiting strategy, such as having Jenkins attempt to evenly distribute GitHub API requests, go to "GitHub API usage" under "Configure System" in the Jenkins settings.



I am suspecting issue at below code line,

https://github.com/jenkinsci/github-branch-source-plugin/blob/e708675a334cf666f9a9010c2a22095e6ea2e7fa/src/main/java/org/jenkinsci/plugins/github_branch_source/ApiRateLimitChecker.java#L236

Static value of github api url (GitHubServerConfig.GITHUB_URL) is passed here instead of configured github api url.

So it always matches equals https://api.github.com to https://api.github.com at line

https://github.com/jenkinsci/github-branch-source-plugin/blob/e708675a334cf666f9a9010c2a22095e6ea2e7fa/src/main/java/org/jenkinsci/plugins/github_branch_source/ApiRateLimitChecker.java#L104

 

 

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.