ghprb-plugin: Plugin triggering GitHub Rate Limits

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

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 15 (11 by maintainers)

Most upvoted comments

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.

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

But i still get the same issues