Forum Stats

  • 3,873,408 Users
  • 2,266,556 Discussions


Content-Length Issue in REST API

Hi All,

Calling HCM Fusion REST API and performing Patch Operation. Whenever I run integration got error out with Error.

The HyperText Transfer Protocol (HTTP) 411 Length Required client error response code indicates that the server refuses to accept the request without a defined Content-Length header. This is a common condition with POST calls especially when the target service expects an explicit content-length header in the request. To fix this error or force a content-length header, set EnforceEmptyJSONObjectPayload connectivityProperty from the OIC mapper preceding the REST adapter invoke configuration.

I hard coded values in Mapper as well but still same issue.