java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/orgs/abayer

Jenkins JIRA | Andrew Bayer | 1 year ago
  1. 0

    {noformat} Started by user Andrew Bayer Consulting GitHub Organization Connecting to GitHub using abayer/****** (abayer-github) FATAL: Failed to recompute children of Folder Computation java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/orgs/abayer at sun.reflect.GeneratedConstructorAccessor126.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1889) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1884) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1883) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1456) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.kohsuke.github.Requester.parse(Requester.java:458) at org.kohsuke.github.Requester._to(Requester.java:227) at org.kohsuke.github.Requester.to(Requester.java:194) at org.kohsuke.github.GitHub.getOrganization(GitHub.java:310) at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:130) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:124) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:151) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:106) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/orgs/abayer at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1839) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) at org.kohsuke.github.Requester.parse(Requester.java:454) ... 9 more Finished: FAILURE {noformat} Credentials are valid username/password, put my user in for the owner, default repository scan, etc. When I change to use an access token for the password, it works, but I can't find anywhere where it says to use a username/access token rather than a username/password.

    Jenkins JIRA | 1 year ago | Andrew Bayer
    java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/orgs/abayer
  2. 0

    {noformat} Started by user Andrew Bayer Consulting GitHub Organization Connecting to GitHub using abayer/****** (abayer-github) FATAL: Failed to recompute children of Folder Computation java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/orgs/abayer at sun.reflect.GeneratedConstructorAccessor126.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1889) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1884) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1883) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1456) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.kohsuke.github.Requester.parse(Requester.java:458) at org.kohsuke.github.Requester._to(Requester.java:227) at org.kohsuke.github.Requester.to(Requester.java:194) at org.kohsuke.github.GitHub.getOrganization(GitHub.java:310) at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:130) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:124) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:151) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:106) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/orgs/abayer at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1839) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) at org.kohsuke.github.Requester.parse(Requester.java:454) ... 9 more Finished: FAILURE {noformat} Credentials are valid username/password, put my user in for the owner, default repository scan, etc. When I change to use an access token for the password, it works, but I can't find anywhere where it says to use a username/access token rather than a username/password.

    Jenkins JIRA | 1 year ago | Andrew Bayer
    java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/orgs/abayer
  3. 0

    GitHub comment 952#140261892

    GitHub | 1 year ago | dariusf
    java.io.IOException: Server returned HTTP response code: 403 for URL: https://api.github.com/repos/nonexistentrepo?state=all&per_page=100&page=1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Responsecode 400 with Google Cloud Messaging

    Stack Overflow | 1 year ago | Lars
    java.io.IOException: Server returned HTTP response code: 400 for URL: https://android.googleapis.com/gcm/send
  6. 0

    GitHub comment 220#144015803

    GitHub | 1 year ago | anschwar
    java.lang.Error: java.io.IOException: {"message":"API rate limit exceeded for anschwar.","documentation_url":"https://developer.github.com/v3/#rate-limiting"}

    13 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/orgs/abayer

      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0()
    2. Java RT
      HttpsURLConnectionImpl.getResponseCode
      1. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1839)
      2. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
      3. java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
      4. sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
      4 frames
    3. org.kohsuke.github
      GitHub.getOrganization
      1. org.kohsuke.github.Requester.parse(Requester.java:454)
      2. org.kohsuke.github.Requester._to(Requester.java:227)
      3. org.kohsuke.github.Requester.to(Requester.java:194)
      4. org.kohsuke.github.GitHub.getOrganization(GitHub.java:310)
      4 frames
    4. org.jenkinsci.plugins
      GitHubSCMNavigator.visitSources
      1. org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:130)
      1 frame
    5. jenkins.branch
      OrganizationFolder.computeChildren
      1. jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:124)
      1 frame
    6. com.cloudbees.hudson
      FolderComputation.run
      1. com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:151)
      2. com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:106)
      2 frames
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:408)
      2 frames