question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin triggering GitHub Rate Limits

See original GitHub issue

Exception:

Sep 29, 2015 1:19:26 PM org.jenkinsci.plugins.ghprb.GhprbRepository initGhRepository
SEVERE: Error while accessing rate limit API
java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/rate_limit
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1889)
        at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1884)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1883)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1456)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
        at org.kohsuke.github.Requester.parse(Requester.java:458)
        at org.kohsuke.github.Requester._to(Requester.java:227)
        at org.kohsuke.github.Requester.to(Requester.java:194)
        at org.kohsuke.github.GitHub.getRateLimit(GitHub.java:245)
        at org.jenkinsci.plugins.ghprb.GhprbRepository.initGhRepository(GhprbRepository.java:71)
        at org.jenkinsci.plugins.ghprb.GhprbRepository.init(GhprbRepository.java:47)
        at org.jenkinsci.plugins.ghprb.Ghprb.init(Ghprb.java:86)
        at org.jenkinsci.plugins.ghprb.GhprbTrigger.start(GhprbTrigger.java:205)
        at org.jenkinsci.plugins.ghprb.GhprbTrigger.start(GhprbTrigger.java:52)
        at hudson.model.AbstractProject.onLoad(AbstractProject.java:331)
        at hudson.model.Project.onLoad(Project.java:98)
        at hudson.model.Items.load(Items.java:327)
        at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:109)
        at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:240)
        at hudson.model.Items.load(Items.java:327)
        at jenkins.model.Jenkins$17.run(Jenkins.java:2685)
        at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
        at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
        at jenkins.model.Jenkins$7.runTask(Jenkins.java:899)
        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/rate_limit
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1839)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
        at org.kohsuke.github.Requester.parse(Requester.java:454)
        ... 23 more

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
mmitchecommented, Sep 12, 2016

This is the critical PR for this: https://github.com/kohsuke/github-api/pull/283

Without that, User info requests can cause huge numbers of simultaneous API calls.

1reaction
v1vcommented, Sep 12, 2016

These are the related issues with the github-api and rate_limit:

But i still get the same issues

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dealing with GitHub's rate limiting · Issue #855 · peter-evans ...
The plugin I added only works for the GitHub API calls, not the git operations. Let me investigate how best to retry the...
Read more >
Rate limits for GitHub Apps
GitHub Apps that are installed on an organization within an enterprise on GitHub.com are subject to a limit of 15,000 requests per hour...
Read more >
Best practices for integrators - GitHub Docs
The GitHub API rate limit ensures that the API is fast and available for everyone. If you hit a rate limit, it's expected...
Read more >
Triggering build with a comment with configured PR numbre ...
I have some builds in jenkins, each build has PR Number set to its matching pull request number, matching is set to true,...
Read more >
Rate limit exceeded during pull-request #126 - GitHub
Maybe the plugin is just not triggered correctly. Re the failure, I completely agree with you. The action should set a none zero...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found