SAP Knowledge Base Article - Public

2772905 - Error code 502 when using requestType="OPTIONS" in the header - SuccessFactors OData API

Symptom

When doing API call the following error appears in the response:

"We're Sorry...but the server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request (error code 502)."

NOTE: This KBA only applies if requestType="OPTIONS" is passed in the header of the API call.

Environment

SuccessFactors OData API

Reproducing the Issue

Create an API call with request type "OPTIONS" on the header (requestType="OPTIONS").

Cause

This request type (requestType="OPTIONS") is currently not supported, therefore the header will not be accepted by the system.

Resolution

Please use only supported request types in the header to avoid this error, see more information about the header of the API call on the guide section Headers.

More details also in:

See Also

Headers | SAP SuccessFactors API Reference Guide (OData V2) | SAP Help Portal

Keywords

"We're Sorry...but the server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request (error code 502)", requestType="OPTIONS", request type unsupported, 405, 502, header, requestType , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM Suite all versions