When I try to watch or fetch the logs for a task that was just created (pending, unscheduled, or otherwise), I'm getting an ugly error message:
{
"code": "ResourceNotFound",
"message": "Artifact not found\n----\nmethod: getLatestArtifact\nerrorCode: ResourceNotFound\nstatusCode: 404\ntime: 2017-03-10T15:46:56.672Z",
"requestInfo": {
"method": "getLatestArtifact",
"params": {
"0": "public/logs/live.log",
"taskId": "8aATqJZQSfihCp0cI0axdA",
"name": "public/logs/live.log"
},
"payload": {},
"time": "2017-03-10T15:46:56.672Z"
}
}
Error: Received unexpected response code 404
The task log should catch that error (logs don't exists), and I think that it should first check the status of the task, so that it can display better error messages if the task doesn't exist or the logs haven't been created yet.