Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22736

Cannot 'Create Access Token' After Upgrading to 1.11.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • ghprb-plugin
    • None
    • 1.11.2

      Howdy,

      Yesterday afternoon I upgraded my Jenkins CI server including installing the newest plugging versions. After upgrading to GitHub pull request builder plugin to version 1.11.2, the feature stopped working. With some investigating, I noticed all my configuration for the plugin had been reverted back to the default settings and there was no longer an access token. When attempting to generate a new access key, an error was thrown. Here is the error from the system log:

      ```
      Apr 23, 2014 10:20:47 AM SEVERE org.jenkinsci.plugins.ghprb.GhprbRepository checkState
      Error while accessing rate limit API
      java.io.IOException:

      {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}

      at org.kohsuke.github.Requester.handleApiError(Requester.java:342)
      at org.kohsuke.github.Requester._to(Requester.java:177)
      at org.kohsuke.github.Requester.to(Requester.java:141)
      at org.kohsuke.github.GitHub.getRateLimit(GitHub.java:228)
      at org.jenkinsci.plugins.ghprb.GhprbRepository.checkState(GhprbRepository.java:57)
      at org.jenkinsci.plugins.ghprb.GhprbRepository.check(GhprbRepository.java:77)
      at org.jenkinsci.plugins.ghprb.Ghprb.run(Ghprb.java:72)
      at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:181)
      at hudson.triggers.Trigger.checkTriggers(Trigger.java:258)
      at hudson.triggers.Trigger$Cron.doRun(Trigger.java:206)
      at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)
      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.getInputStream(HttpURLConnection.java:1625)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
      at org.kohsuke.github.Requester.parse(Requester.java:298)
      at org.kohsuke.github.Requester._to(Requester.java:175)
      ```

      Any idea what is going on here? Didn't recall seeing any similar open issues. I will attempt to downgrade in the time being.

            Unassigned Unassigned
            jakef Jake Fagan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: