UIPath Robot API Responses Not a valid JSON

Hi All,

I am starting a UiPath robot process through API calls. The application that will consume the service is requiring a well formed JSON response. For testing I am using Fiddler or Postman as client and I can only get the following responses.

STARTJOB Response (XML)
HTTP/1.1 200 OK
Content-Length: 113
Content-Type: application/xml; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Date: Tue, 22 Aug 2017 05:24:23 GMT

“< string xmlns=“http://schemas.microsoft.com/2003/10/Serialization/”>1798faab-7482-482a-a454-6a8145634668< /string>”

QUERYJOB Response (not a valid)
HTTP/1.1 200 OK
Content-Length: 697
Content-Type: application/json; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Date: Tue, 22 Aug 2017 05:53:33 GMT

“{"ExecutionStatus":6,"CompletedResult":"{\"State\":1,\"Error\":null,\"Output\":{\"outputData1\":\"One\",\"outputData2\":\"Two\",\"outputData3\":\"Three\"},\"Token\":\"8eee1f5b-a13a-489b-86da-9f1f9dabe90f\",\"WorkflowFile\":\"C:\\\\Users\\\\MyName\\\\Documents\\\\GenerateName\\\\Main.xaml\",\"ProcessName\":\"GenerateName\",\"FaultedActivityId\":null,\"FaultedWorkflowFile\":null}","ExecutionPoint":null,"ExecutingRobotId":"6c2a4f52-1470-45f3-9f0e-7bb4622bd7d3","AdditionalInfo":"Job completed"}”

I already tried adding this in the request headers
Accept: application/json, text/json

Did i miss anything on my request? How can I get a valid JSON response for both of the above-mentioned methods?

Hi @JGuarino,

Am facing same issue. Were you able to resolve this?

Thanks!