Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-2325

Return HTTP 429 if throttling occurs

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Provisioning
    • None
    • EnVision Sprint 34, EnVision Sprint 35
    • None

      We currently return 500 which is not a good choice.

      After the change:

      HTTP/1.1 429 Too Many Requests
      Content-Type: application/json
      X-Rh-Version: 8c45 (2023-08-11T07:52:29Z)
      X-Trace-Id: 5dfd8b3b28be1258d580497b648001e5
      Date: Fri, 11 Aug 2023 14:46:34 GMT
      Content-Length: 248
      
      {
        "msg": "too many pending reservations for this account, wait and try again",
        "trace_id": "5dfd8b3b28be1258d580497b648001e5",
        "error": "failed to create reservation record: rate limit exceeded: xxx",
        "version": "8c45",
        "build_time": "2023-08-11T07:52:29Z"
      }
      

              rhn-engineering-lzapletal Lukáš Zapletal
              rhn-engineering-lzapletal Lukáš Zapletal
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: