org.kohsuke.github.HttpException

Server returned HTTP response code: 401, message: 'Unauthorized' for URL: https://github/api/v3/rate_limit

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.

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

Solutions on the web10

  • via GitHub by v1v
    , 10 months ago
    Server returned HTTP response code: 401, message: 'Unauthorized' for URL: https://github./api/v3/rate_limit
  • via Google Groups by Benson Margulies, 8 months ago
    Server returned HTTP response code: -1, message: 'null' for URL: https://git.basistech.net/api/v3/user
  • via GitHub by jdelagnes
    , 3 weeks ago
    Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/rate_limit
  • Stack trace

    • org.kohsuke.github.HttpException: Server returned HTTP response code: 401, message: 'Unauthorized' for URL: https://github/api/v3/rate_limit at org.kohsuke.github.Requester.parse(Requester.java:540) at org.kohsuke.github.Requester._to(Requester.java:251) at org.kohsuke.github.Requester.to(Requester.java:213) at org.kohsuke.github.GitHub.getRateLimit(GitHub.java:263) at org.jenkinsci.plugins.ghprb.GhprbRepository.initGhRepository(GhprbRepository.java:98) at org.jenkinsci.plugins.ghprb.GhprbRepository.check(GhprbRepository.java:130) at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:294) at hudson.triggers.Trigger.checkTriggers(Trigger.java:272) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:221) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) 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:745) Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://github/api/v3/rate_limit at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.kohsuke.github.Requester.parse(Requester.java:524) ... 16 more Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://github/api/v3/rate_limit at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) at org.kohsuke.github.Requester.parse(Requester.java:514) ... 16 more

    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 user
    Once, 1 year ago
    4 times, 1 week ago
    Unknown user
    Once, 5 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    56 more bugmates