A Control-M Application Integrator REST job performing a POST incorrectly sends an empty body resulting in an HTTP 400 error and the job fails. The returned error message is like below ---------------------------- Exit Message = Application Integrator CM: UCM0001 = Application Integrator CM: UCM0001 = REST request failed. status code: 400 response is: Bad Request message: Error Executing REST request to http://<Server>:<Port>/ : java.io.IOException: Server returned HTTP response code: 400 for URL ---------------------------- The following can be seen in the AI_SUBMIT*.log file, in the Control-M/Agent's PROCLOG directory, for a failed job: 2020-06-26 11:27:53,709 INFO [Thread-24] (RESTRunLayer.java:227) - Rest request parameters: URL:https://{{RESTHost}}:{{RESTPort}} , restEndpoint: {{RESTProt}}://{{RESTHost}}:{{RESTPort}}/ , URLPath: v1/authentication, method: POST , URLParams: null , headers: content-type=application/json&accept=application/json , body: , cookies: null , contentType: null , timeout: null Note that the body is empty or a combination of spaces and newline characters. 2020-07-01 12:05:46,972 INFO [Thread-389] (RESTRunLayer.java:227) - Rest request parameters: URL:https://{{RESTHost}}:{{RESTPort}} , restEndpoint: {{RESTProt}}://{{RESTHost}}:{{RESTPort}}/ , URLPath: v1/authentication, method: POST , URLParams: null , headers: content-type=application/json&accept=application/json , body: {"username":"{{RESTUserName}}","password":"{{RESTPassword}}"} , cookies: null , contentType: null , timeout: null |
CTM-3795 has been created to address this issue and is implemented in Control-M Application Integrator 9.0.20.100. Install the latest available version to address this issue. |