java.io.FileNotFoundException: https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0

Jenkins JIRA | Jehan Bruggeman | 4 years ago
  1. 0

    Github has shutdown its v2 API (https://github.com/blog/1160-github-api-v2-end-of-life). Consequently, calls to the v2 API fail and it becomes impossible to log into Jenkins when Github is used for authentication. {code} Exception: https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0 Stacktrace: java.io.FileNotFoundException: https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.kohsuke.github.GitHub.parse(GitHub.java:310) at org.kohsuke.github.GitHub._retrieve(GitHub.java:196) at org.kohsuke.github.GitHub.retrieveWithAuth(GitHub.java:185) at org.kohsuke.github.GitHub.retrieveWithAuth(GitHub.java:177) at org.kohsuke.github.GitHub.getMyOrganizations(GitHub.java:430) at org.jenkinsci.plugins.GithubAuthenticationToken.<init>(GithubAuthenticationToken.java:77) at org.jenkinsci.plugins.GithubSecurityRealm.doFinishLogin(GithubSecurityRealm.java:312) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) {code}

    Jenkins JIRA | 4 years ago | Jehan Bruggeman
    java.io.FileNotFoundException: https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0
  2. 0

    Github has shutdown its v2 API (https://github.com/blog/1160-github-api-v2-end-of-life). Consequently, calls to the v2 API fail and it becomes impossible to log into Jenkins when Github is used for authentication. {code} Exception: https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0 Stacktrace: java.io.FileNotFoundException: https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.kohsuke.github.GitHub.parse(GitHub.java:310) at org.kohsuke.github.GitHub._retrieve(GitHub.java:196) at org.kohsuke.github.GitHub.retrieveWithAuth(GitHub.java:185) at org.kohsuke.github.GitHub.retrieveWithAuth(GitHub.java:177) at org.kohsuke.github.GitHub.getMyOrganizations(GitHub.java:430) at org.jenkinsci.plugins.GithubAuthenticationToken.<init>(GithubAuthenticationToken.java:77) at org.jenkinsci.plugins.GithubSecurityRealm.doFinishLogin(GithubSecurityRealm.java:312) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) {code}

    Jenkins JIRA | 4 years ago | Jehan Bruggeman
    java.io.FileNotFoundException: https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0
  3. 0

    github /user/orgs fails

    GitHub | 3 years ago | hschaa
    java.io.FileNotFoundException: https://api.github.com/user/orgs
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Github authentication stopped working

    Google Groups | 4 years ago | lorewarden
    java.io.FileNotFoundException: https://github.com/api/v2/json/organizations?access_token=xxxxxxxxxxxxxxxxxxxxxxxxx
  6. 0

    build status not updating pull request; log message not very helpful

    GitHub | 2 years ago | ncolton
    java.io.FileNotFoundException: https://api.github.com/repos/:organization/:repo/statuses/:commit_hash

  1. Seungwan 6 times, last 5 months ago
  2. rp 1 times, last 11 months ago
1 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.FileNotFoundException

    https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream()
  2. Java RT
    HttpsURLConnectionImpl.getInputStream
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
    2. sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    2 frames
  3. org.kohsuke.github
    GitHub.getMyOrganizations
    1. org.kohsuke.github.GitHub.parse(GitHub.java:310)
    2. org.kohsuke.github.GitHub._retrieve(GitHub.java:196)
    3. org.kohsuke.github.GitHub.retrieveWithAuth(GitHub.java:185)
    4. org.kohsuke.github.GitHub.retrieveWithAuth(GitHub.java:177)
    5. org.kohsuke.github.GitHub.getMyOrganizations(GitHub.java:430)
    5 frames
  4. org.jenkinsci.plugins
    GithubSecurityRealm.doFinishLogin
    1. org.jenkinsci.plugins.GithubAuthenticationToken.<init>(GithubAuthenticationToken.java:77)
    2. org.jenkinsci.plugins.GithubSecurityRealm.doFinishLogin(GithubSecurityRealm.java:312)
    2 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:616)
    4 frames