daisy/pipeline

There is no explicit log link in the XML returned by the Pipeline WS for a job that ended in error

Closed this issue · 3 comments

There is no explicit log link in the XML returned by the Pipeline WS for a job that ended in error:

<job href="http://127.0.0.1:49152/ws/jobs/aae0fc81-a553-4a43-a079-e0ae76a0e99c" id="aae0fc81-a553-4a43-a079-e0ae76a0e99c" status="ERROR">
<nicename>EPUB 3 Validator</nicename>
<script href="http://127.0.0.1:49152/ws/scripts/epub3-validator" id="epub3-validator" input-filesets="epub3">
<nicename>EPUB 3 Validator</nicename>
<description>Validates a EPUB.</description>
<version>2.0.3</version>
</script>
<messages progress="1.0">
<message content="Running EPUBCheck" level="INFO" portion="0.8" progress="1.0" sequence="18" timeStamp="1678127402171">
<message content="Failed to load content types: /Users/marisa/dev/pipeline-ui/node_modules/.dev-temp-build/resources/daisy-pipeline/jre/lib/content-types.properties" level="WARNING" sequence="25" timeStamp="1678127402183"/>
</message>
<message content="null (Please see detailed log for more info.)" level="ERROR" portion="1.0" progress="1.0" sequence="50" timeStamp="1678127402407"/>
</messages>
</job>

I could however infer it from the job url + "/log". It's a little hacky though.

Originally posted by @marisademeglio in daisy/pipeline-ui#94 (comment)

Thanks. Rings a bell. I think you might have told me before.