java.io.IOException

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

Samebug tips1

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1632

  • via Unknown by Jake Fagan,
  • via Unknown by Jake Fagan,
  • via Unknown by Vitorrio Brooks,
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    tfrtfr
    35 times, last one
    davidvanlaatumdavidvanlaatum
    Once,
    Unknown visitor
    Unknown visitorOnce,
    69 more bugmates