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

Jenkins JIRA | Jake Fagan | 3 years ago
  1. 0

    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.

    Jenkins JIRA | 3 years ago | Jake Fagan
    java.io.IOException: {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}
  2. 0

    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.

    Jenkins JIRA | 3 years ago | Jake Fagan
    java.io.IOException: {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}
  3. 0

    Jenkins and Git Hub Service Hook Failure

    Google Groups | 3 years ago | Vitorrio Brooks
    java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/user
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.io.IOException HttpURLConnection.getInputStream

    Stack Overflow | 4 years ago | zBaoAnhLe
    java.io.IOException: Server returned HTTP response code: 403 for URL: https://dl-web.dropbox.com/get/My%20Projects/Xml%20Files/Vk%20Iu%20Quilling/KeyList.xml?w=AAD6Cf_YdXRg5tyY4cquyiXBZ8XuQUsIbsMGVoIfkgPcpg
  6. 0

    Trouble searching Google using the search API

    Stack Overflow | 3 years ago | KodeSeeker
    java.io.IOException: Server returned HTTP response code: 400 for URL: https://www.googleapis.com/customsearch/v1?key=key&cx=cx&q=katrina+&alt=json&start=1&num=100

  1. tfr 2 times, last 4 months ago
  2. davidvanlaatum 1 times, last 4 months ago
  3. pnaranja 5 times, last 5 months ago
  4. aldrinleal 1 times, last 7 months ago
29 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Java RT
    HttpsURLConnectionImpl.getInputStream
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
    2. sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    2 frames
  3. org.kohsuke.github
    Requester._to
    1. org.kohsuke.github.Requester.parse(Requester.java:298)
    2. org.kohsuke.github.Requester._to(Requester.java:175)
    2 frames