Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46303

Hitting a GitHub Rate Limit in Pipeline creation flow gives ambiguous error

    • Blue Ocean 1.2, Blue Ocean 1.3, Blue Ocean 1.4 - beta 1, Blue Ocean 1.4 - beta 2, Blue Ocean - Candidates

      Testing a recent build of the plugin, when creating a new Pipeline I get the following exception in the logs. Unfortunately I'm never told as a user what the error is, so I'm likely going to keep trying over and over and over again to make this worse, further exacerbating the error

      Now, something might be retrying over and over again in the background which caused this error, but I'm not sure what that might be.,

      Aug 19, 2017 9:07:37 PM io.jenkins.blueocean.blueocean_github_pipeline.GithubPipelineCreateRequest cleanupOnError         
      SEVERE: Error creating pipeline rtyler: GitHub API rate limit exceeded                                                         
      org.jenkinsci.plugins.github_branch_source.RateLimitExceededException: GitHub API rate limit exceeded                                                                                             
              at org.jenkinsci.plugins.github_branch_source.Connector$1.onError(Connector.java:407)                                                                                                                                                
              at org.kohsuke.github.Requester.handleApiError(Requester.java:676)                                                                                                                                                                   
              at org.kohsuke.github.Requester._to(Requester.java:285)                                                                                                                                                                              
              at org.kohsuke.github.Requester.to(Requester.java:226)                                                                                                                                                                               
              at org.kohsuke.github.GitHub.checkApiUrlValidity(GitHub.java:668)                                                 
              at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.checkApiUrlValidity(GitHubSCMSource.java:1020)           
              at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:826)                       
              at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)                                                                                                                                                                           
              at jenkins.scm.api.SCMSource.fetch(SCMSource.java:285)                                                                                                                                                                               
              at io.jenkins.blueocean.blueocean_github_pipeline.GithubPipelineCreateRequest.repoHasJenkinsFile(GithubPipelineCreateRequest.java:329)
              at io.jenkins.blueocean.blueocean_github_pipeline.GithubPipelineCreateRequest.create(GithubPipelineCreateRequest.java:181)                                                                                                                   at io.jenkins.blueocean.rest.model.BluePipelineContainer.create(BluePipelineContainer.java:48)                    
              at io.jenkins.blueocean.rest.model.BluePipelineContainer.create(BluePipelineContainer.java:44)                                                                                                                                       
              at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)                                                                   
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)                                                                                                                                                             
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)                                                                   
              at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)                                                                                                                             
              at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)                                                   
              at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)                                                                                                                              
              at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)                                                                                                           
              at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:26)                                               
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)                                                                                                                                                                           
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)                                                                                                                                                                              
              at org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:209)                                                                                                                                                                            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)                                                                                                                                                     
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)                                                             
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)                                                                   
              at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)                                                                                                                                                                     
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)                                                                                                                                                                           
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)                                                                                                                                                                              
              at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)                                                  
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)                                                             
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)                                                                                                                                   
              at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)      
      
      

          [JENKINS-46303] Hitting a GitHub Rate Limit in Pipeline creation flow gives ambiguous error

          James Dumay added a comment -

          cliffmeyers could you please check that creation would actually show these errors to the user?

          James Dumay added a comment - cliffmeyers could you please check that creation would actually show these errors to the user?

          Cliff Meyers added a comment -

          jamesdumay can we defer investigation on this until after JENKINS-45240 ("Remove org folders") lands in master? As the GitHub creation flow code will be much simplified, it'd be better to fix the bug there if it still exists... otherwise just merge headaches.

          Cliff Meyers added a comment - jamesdumay can we defer investigation on this until after JENKINS-45240 ("Remove org folders") lands in master? As the GitHub creation flow code will be much simplified, it'd be better to fix the bug there if it still exists... otherwise just merge headaches.

          Karl Shultz added a comment -

          Testing Notes:

          • Unit tests would be the best fit for validating this, once it's implemented.

          Karl Shultz added a comment - Testing Notes: Unit tests would be the best fit for validating this, once it's implemented.

            Unassigned Unassigned
            rtyler R. Tyler Croy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: