SAP Knowledge Base Article - Public

3740181 - Intermittent 502 Service Unavailable errors in Preview - SAP successfactors Platform

Symptom

  • Intermittent HTTP 502 responses when calling the API in the preview environment.
  • Error payload includes: code "ServiceUnavailable" and message indicating the server, acting as a gateway or proxy, received an invalid response from the upstream server (error code 502).
  • HTTP 503 errors also observed in the preview environment.
  • Server-side logs show "Unexpected EOF at target".
  • Failures occur intermittently for standard entities (for example, User), while some calls may succeed.

Environment

  • Product: SAP SuccessFactors Platform
  • SF API Framework

Reproducing the Issue

  1. Run API requests in the preview environment (for example, a GET to a standard entity such as User).
  2. Observe intermittent failures returning HTTP 502 with code "ServiceUnavailable" and the gateway/proxy upstream invalid response message.

Cause

Potential causes:

  • High heap memory usage and prolonged garbage collection activity leading to intermittent API rejections with 502/503 responses.
  • A problematic query pattern could allocate excessive memory, causing out-of-memory conditions.
  • Currently under analysis.

Resolution

The solution of this issue is currently under investigation. Please follow this KBA for updates.

See Also

Keywords

preview environment, serviceunavailable, 502, 503, gateway error, invalid response from upstream, intermittent api failures, unexpected eof at target, heap memory, garbage collection, out of memory, sfapi, user entity, http error , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors Platform all versions