Symptom
When doing API call you receive the error: "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 you are using requestType="OPTIONS" in the header of your API call, if you are not using this request type, the error code 502 may have other root causes.
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 unsupported, therefore the header will not be accepted by the system.
Resolution
Please use supported requestTypes 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:
Keywords
When doing API call you receive the error: "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, error 405, Error code 502 when using requestType="OPTIONS" in the header. , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem