Agent needs to handle exceptions coming from
Moreover in any case the payload that the agent returns will have this format:
{
“error”: false,
“statusCode”: 200,
“statusCodeReason”: “OK. Task status retrieved.”,
“message”: [
{
“taskId”: “048d4788-243f-4fa5-a9cd-02fe5c554077”,
“status”: “running”,
“createdAt”: “2018-10-04 14:13:16”,
“startTime”: “2018-10-04 14:13:17”,
“totalTime”: 255541,
“returnValue”: “{\n\t\”progress\“: 56\n}”
}
]
}
In case of error (status code!=200), “message” will be an empty array. In case of 200 status code, message will be the response coming from the adapter.
Agent needs to handle exceptions coming from
Moreover in any case the payload that the agent returns will have this format:
{
“error”: false,
“statusCode”: 200,
“statusCodeReason”: “OK. Task status retrieved.”,
“message”: [
{
“taskId”: “048d4788-243f-4fa5-a9cd-02fe5c554077”,
“status”: “running”,
“createdAt”: “2018-10-04 14:13:16”,
“startTime”: “2018-10-04 14:13:17”,
“totalTime”: 255541,
“returnValue”: “{\n\t\”progress\“: 56\n}”
}
]
}
In case of error (status code!=200), “message” will be an empty array. In case of 200 status code, message will be the response coming from the adapter.