Error: S,Detail: Unexpected token: S

Madhura Ambede
Tera Contributor

Hello,

 

Please assist on below error.


Error: S,Detail: Unexpected token: S : while executing Rest API GET method using action in flow designer.

 

Below is the script step

 

(function execute(inputs, outputs) {

    inputs = new AnsibleUtils().trimStringInputs(inputs);
if (inputs.status_code == '200') {
    outputs.status = 'Success';
    var response = JSON.parse(inputs.response);
    outputs.output = response;
    outputs.job_id = JSON.parse(inputs.response).id;
  } else
    outputs =  new AnsibleErrorHandler().launchJobTemplateErrorHandler(inputs, outputs);  
})(inputs, outputs);
 
Regards,
Madhura 
3 REPLIES 3

Community Alums
Not applicable

Hey Madhura,

Were you able to resolve it?

Thank you

Community Alums
Not applicable

I am also facing similar issue. Any progress on this?

             "The current operation ended in state: ERROR. Detail: Error: S,Detail: Unexpected token: S"

piyushrusia1998
Tera Contributor

Did this issue resolved ?(The current operation ended in state: ERROR. Detail: Error: <,Detail: Unexpected token: <)

 
I am also facing same issue while pushing a default HTTP Request Template to AppDynamics.