java.net.MalformedURLException: no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX

Jenkins JIRA | Andrew Coulton | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Following upgrade to 1.5, github pull request builder couldn't connect to github because the default setting for the github api url (which is also specified by the config validator) is api.github.com. This causes the following error: {quote} Feb 21, 2013 5:59:40 PM org.jenkinsci.plugins.ghprb.GhprbRepo connect SEVERE: Can't connect to api.github.com using oauth java.net.MalformedURLException: no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX at java.net.URL.<init>(URL.java:585) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at org.kohsuke.github.GitHub.getApiURL(GitHub.java:175) at org.kohsuke.github.Requester._to(Requester.java:159) at org.kohsuke.github.Requester.to(Requester.java:139) at org.kohsuke.github.GitHub.getMyself(GitHub.java:200) at org.kohsuke.github.GitHub.<init>(GitHub.java:102) at org.kohsuke.github.GitHub.connectUsingOAuth(GitHub.java:149) at org.jenkinsci.plugins.ghprb.GhprbRepo.connect(GhprbRepo.java:61) at org.jenkinsci.plugins.ghprb.GhprbRepo.checkState(GhprbRepo.java:73) at org.jenkinsci.plugins.ghprb.GhprbRepo.check(GhprbRepo.java:91) at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:132) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) {quote} Changing the config value to https://api.github.com worked.

    Jenkins JIRA | 4 years ago | Andrew Coulton
    java.net.MalformedURLException: no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX
  2. 0

    Following upgrade to 1.5, github pull request builder couldn't connect to github because the default setting for the github api url (which is also specified by the config validator) is api.github.com. This causes the following error: {quote} Feb 21, 2013 5:59:40 PM org.jenkinsci.plugins.ghprb.GhprbRepo connect SEVERE: Can't connect to api.github.com using oauth java.net.MalformedURLException: no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX at java.net.URL.<init>(URL.java:585) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at org.kohsuke.github.GitHub.getApiURL(GitHub.java:175) at org.kohsuke.github.Requester._to(Requester.java:159) at org.kohsuke.github.Requester.to(Requester.java:139) at org.kohsuke.github.GitHub.getMyself(GitHub.java:200) at org.kohsuke.github.GitHub.<init>(GitHub.java:102) at org.kohsuke.github.GitHub.connectUsingOAuth(GitHub.java:149) at org.jenkinsci.plugins.ghprb.GhprbRepo.connect(GhprbRepo.java:61) at org.jenkinsci.plugins.ghprb.GhprbRepo.checkState(GhprbRepo.java:73) at org.jenkinsci.plugins.ghprb.GhprbRepo.check(GhprbRepo.java:91) at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:132) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) {quote} Changing the config value to https://api.github.com worked.

    Jenkins JIRA | 4 years ago | Andrew Coulton
    java.net.MalformedURLException: no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX
  3. 0

    Using JTextField and JButton to open an url

    Stack Overflow | 4 months ago | Sarah
    java.net.MalformedURLException: no protocol: input
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Decoding saml response while using single callback url for all auth clients

    GitHub | 3 years ago | ganeshs
    java.net.MalformedURLException: no protocol: {recipient}
  6. 0

    JAVA Exception when file path contains spaces

    GitHub | 4 years ago | shinework
    java.net.MalformedURLException: no protocol: /var/www/doc/sample
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.net.MalformedURLException

    no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX

    at java.net.URL.<init>()
  2. Java RT
    URL.<init>
    1. java.net.URL.<init>(URL.java:585)
    2. java.net.URL.<init>(URL.java:482)
    3. java.net.URL.<init>(URL.java:431)
    3 frames
  3. org.kohsuke.github
    GitHub.connectUsingOAuth
    1. org.kohsuke.github.GitHub.getApiURL(GitHub.java:175)
    2. org.kohsuke.github.Requester._to(Requester.java:159)
    3. org.kohsuke.github.Requester.to(Requester.java:139)
    4. org.kohsuke.github.GitHub.getMyself(GitHub.java:200)
    5. org.kohsuke.github.GitHub.<init>(GitHub.java:102)
    6. org.kohsuke.github.GitHub.connectUsingOAuth(GitHub.java:149)
    6 frames
  4. org.jenkinsci.plugins
    GhprbTrigger.run
    1. org.jenkinsci.plugins.ghprb.GhprbRepo.connect(GhprbRepo.java:61)
    2. org.jenkinsci.plugins.ghprb.GhprbRepo.checkState(GhprbRepo.java:73)
    3. org.jenkinsci.plugins.ghprb.GhprbRepo.check(GhprbRepo.java:91)
    4. org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:132)
    4 frames
  5. Hudson
    SafeTimerTask.run
    1. hudson.triggers.Trigger.checkTriggers(Trigger.java:259)
    2. hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
    3. hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
    3 frames
  6. Java RT
    TimerThread.run
    1. java.util.TimerThread.mainLoop(Timer.java:555)
    2. java.util.TimerThread.run(Timer.java:505)
    2 frames