java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}

Jenkins JIRA | steven magelowitz | 1 year ago
  1. 0

    I'm getting the following error, when trying to set the build status on GitHub. Maybe the API changed? {code} 09:59:11 Setting commit status on GitHub for https://github.com/kiva/zip/commit/8a3ae0d2bb4a90204a1f00feec6a3711e1a09c9d 09:59:11 FATAL: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} 09:59:11 java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} 09:59:11 at org.kohsuke.github.Requester.handleApiError(Requester.java:494) 09:59:11 at org.kohsuke.github.Requester._to(Requester.java:245) 09:59:11 at org.kohsuke.github.Requester.to(Requester.java:191) 09:59:11 at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:780) 09:59:11 at com.cloudbees.jenkins.GitHubSetCommitStatusBuilder.perform(GitHubSetCommitStatusBuilder.java:32) 09:59:11 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 09:59:11 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 09:59:11 at hudson.model.Build$BuildExecution.build(Build.java:205) 09:59:11 at hudson.model.Build$BuildExecution.doRun(Build.java:162) 09:59:11 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) 09:59:11 at hudson.model.Run.execute(Run.java:1741) 09:59:11 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 09:59:11 at hudson.model.ResourceController.execute(ResourceController.java:98) 09:59:11 at hudson.model.Executor.run(Executor.java:381) 09:59:11 Caused by: java.io.FileNotFoundException: https://api.github.com/repos/kiva/zip/statuses/8a3ae0d2bb4a90204a1f00feec6a3711e1a09c9d {code}

    Jenkins JIRA | 1 year ago | steven magelowitz
    java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}
  2. 0

    I'm getting the following error, when trying to set the build status on GitHub. Maybe the API changed? {code} 09:59:11 Setting commit status on GitHub for https://github.com/kiva/zip/commit/8a3ae0d2bb4a90204a1f00feec6a3711e1a09c9d 09:59:11 FATAL: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} 09:59:11 java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} 09:59:11 at org.kohsuke.github.Requester.handleApiError(Requester.java:494) 09:59:11 at org.kohsuke.github.Requester._to(Requester.java:245) 09:59:11 at org.kohsuke.github.Requester.to(Requester.java:191) 09:59:11 at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:780) 09:59:11 at com.cloudbees.jenkins.GitHubSetCommitStatusBuilder.perform(GitHubSetCommitStatusBuilder.java:32) 09:59:11 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 09:59:11 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 09:59:11 at hudson.model.Build$BuildExecution.build(Build.java:205) 09:59:11 at hudson.model.Build$BuildExecution.doRun(Build.java:162) 09:59:11 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) 09:59:11 at hudson.model.Run.execute(Run.java:1741) 09:59:11 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 09:59:11 at hudson.model.ResourceController.execute(ResourceController.java:98) 09:59:11 at hudson.model.Executor.run(Executor.java:381) 09:59:11 Caused by: java.io.FileNotFoundException: https://api.github.com/repos/kiva/zip/statuses/8a3ae0d2bb4a90204a1f00feec6a3711e1a09c9d {code}

    Jenkins JIRA | 1 year ago | steven magelowitz
    java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}
  3. 0

    UpdateStatus Request fails (doesn't use Auth-Token)

    GitHub | 6 months ago | jelmd
    java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [github-branch-source-plugin] (JENKINS-33306) Stack trace printed when notifications privilege missing

    Google Groups | 9 months ago | jglick@cloudbees.com (JIRA)
    java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"..."}
  6. 0

    If you build a pull request yet your scan credentials lack the {{notifications}} privilege, you get an ugly stack trace along the lines of {code:none} ERROR: Could not update commit status java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"..."} at org.kohsuke.github.Requester.handleApiError(Requester.java:527) at org.kohsuke.github.Requester._to(Requester.java:257) at org.kohsuke.github.Requester.to(Requester.java:203) at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:854) at org.jenkinsci.plugins.github_branch_source.GitHubBuildStatusNotification.createCommitStatus(GitHubBuildStatusNotification.java:78) at ... Caused by: java.io.FileNotFoundException: .../api/v3/repos/.../.../statuses/... at ... at org.kohsuke.github.Requester.parse(Requester.java:483) at org.kohsuke.github.Requester._to(Requester.java:236) ... 17 more Caused by: java.io.FileNotFoundException: ... at ... at org.kohsuke.github.Requester.parse(Requester.java:479) ... 18 more {code} Since this is a fairly predictable user error (or the user might even have just decided to deny this permission), it would be more appropriate to catch {{FileNotFoundException}} here and print a one-line warning to the build log saying that the commit status notification could not be sent, and leave it at that. (For diagnostic purposes the full exception could be logged at {{FINE}}.)

    Jenkins JIRA | 9 months ago | Jesse Glick
    java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"..."}

    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

      {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}

      at org.kohsuke.github.Requester.handleApiError()
    2. org.kohsuke.github
      GHRepository.createCommitStatus
      1. org.kohsuke.github.Requester.handleApiError(Requester.java:494)
      2. org.kohsuke.github.Requester._to(Requester.java:245)
      3. org.kohsuke.github.Requester.to(Requester.java:191)
      4. org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:780)
      4 frames
    3. com.cloudbees.jenkins
      GitHubSetCommitStatusBuilder.perform
      1. com.cloudbees.jenkins.GitHubSetCommitStatusBuilder.perform(GitHubSetCommitStatusBuilder.java:32)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      3. hudson.model.Build$BuildExecution.build(Build.java:205)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      6. hudson.model.Run.execute(Run.java:1741)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:381)
      9 frames