Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-26120

403 and 429 responses from GitHub do not engage corrective action

XMLWordPrintable

      Issue Summary

      When recieving a 403 or 429 response from GitHub due to hitting their secondary rate limit, Jira continues to try and sync the repo, resulting in repeated errors.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Have a very large repo on Github Cloud that is attempting to sync to Jira
      2. Hit the secondary rate limit, and have the error returned be a 403 or 429 response code

      Expected Results

      Jira code will attempt to take successful corrective action to prevent the looping error and stay under the rate limit, as it does when getting a 429 response when primary rate limit is exceeded.

      Actual Results

      Jira continues to attempt to sync the repo, resulting in repeated errors like below in the atlassian-jira.log (may instead be a 429 error, as well):

      Caesium-1-1 WARN ServiceRunner    
      [c.a.j.p.d.spi.github.GithubClientWithTimeout] Failed to execute request [<REPO NAME>] response code: 403, errors: 
          You have exceeded a secondary rate limit. Please wait a few minutes before you try again. If you reach out to GitHub Support for help, please include the request ID #####. (403) 
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              653c0c4fdc76 Nikhil Patil
              ba8ad0b21fe9 Mateo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: