Return 429 instead of 500 when failing to add user due to ratelimit

XMLWordPrintable

    • 5
    • Severity 2 - Major
    • 5

      Issue Summary

      When rate-limited trying to add a user via the /rest/api/3/user endpoint, you will receive a 500 error instead of a 429 error.

      Steps to Reproduce

      1. Send requests to /rest/api/3/user and get rate-limited
      2. Get 500 errors asking user to reach out to support.

      Expected Results

      Receive an error relevant to the request like we can see when investigating the endpoint failure:

      Too many requests. Please inspect Retry-After header.

      Additionally, ensure 429 headers are present so that user knows when to retry.

      Actual Results

      A 500 error stating

      The request failed. We're not sure what went wrong. Try again and if the problem persists, contact Jira support.

      Workaround

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

            Assignee:
            Jason Huang
            Reporter:
            James W (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: