SAP Knowledge Base Article - Public

3848477 - RateLimit Response Header Missing "r" (Remaining) Parameter for spike-arrest Policy

Symptom

The ratelimit response header does not return the r (remaining) parameter for the spike-arrest policy; only t (time) is present. The tenant-quota and customized-spike-arrest policies return r correctly. Includes the exact response header examples from the curl logs.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental. 

Environment

  • SAP SuccessFactors HCM
    • ODATA API

Cause

Spike-arrest enforces a per-second/millisecond pace (e.g., "60 req/min" = "1 req/sec"), which made computing a meaningful r value non-trivial. This was an omission in the initial implementation.

Resolution

The fix is planned for an upcoming patch and is being tracked under Jira SFAPI-38138. The deployment is tentatively targeted for the end of November which includes the below enhancements:
  • Return r parameter for spike-arrest with the same semantics as tenant-quota
  • Enhance documentation with spike-arrest examples for smooth burst traffic

Workaround 

Use the ratelimit-policy header's q and w values to calculate per-second rate and implement fixed-interval spacing.

Keywords

HTTP 429, Too Many Requests, spike-arrest , KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , LOD-SF-INT-ODATA , OData API Framework , Known Error

Product

SAP SuccessFactors HCM Core 2611 ; SAP SuccessFactors HCM Suite 2611