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
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
SAP Knowledge Base Article - Public