-
Hi, at NLB in Norway we are now trying to upgrade our version of Daisy Pipeline, but we're having some issues with the newest version, in terms of it not working at all. We are using a modified version of 1.11.1 which works fine, but the newest version (1.14.12) has some features we would like to implement into our solution. I am running it locally and getting the following errors on the attached file: <?xml version='1.0' encoding='UTF-8'?>
<jobRequest xmlns="http://www.daisy.org/ns/pipeline/data">
<priority>medium</priority>
<script href="http://localhost:8282/ws/scripts/html-to-pef"/>
<option name="html">185259.html</option>
<option name="stylesheet">braille.scss</option>
<option name="stylesheet-parameters">(skip-margin-top-of-page:true)</option>
<option name="transform">(formatter:dotify)(translator:liblouis)(dots:6)(grade:0)</option>
<option name="page-width">38</option>
<option name="page-height">29</option>
<option name="duplex">true</option>
<option name="hyphenation">false</option>
<option name="line-spacing">single</option>
<option name="include-production-notes">true</option>
<option name="toc-depth">2</option>
<option name="maximum-number-of-sheets">50</option>
<option name="allow-volume-break-inside-leaf-section-factor">10</option>
<option name="prefer-volume-break-before-higher-level-factor">1</option>
</jobRequest>
It's responding no match for query, but I cannot seem to find what querys are allowed anywhere. Removing parts of it, does not work either. This is the file that we're trying to convert (it has already been validated and passed through our older version, but just won't pass through on this. If we can determine what's wrong with it, we can change our production system accordingly, but right now the errors we get does not provide enough information. Any help with solving this would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 2 replies
-
Hi Gaute, feel free to send your example file by email, that way we can use it for development purposes, but it is not available for the rest of the world. I will do some testing and get back to you. |
Beta Was this translation helpful? Give feedback.
-
I was able to reproduce your issue with version 1.14.11. But not with the latest version, 1.14.14. This was probably a bug that I fixed, although I don't remember when I did that. Would it be possible to try 1.14.14? Thanks. |
Beta Was this translation helpful? Give feedback.
-
It does get past the error in 1.14.14, but another error occurs. Not sure where the error originates from. <?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://www.daisy.org/ns/pipeline/data" query="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1">
<description>Value 'false' not accepted for option 'hyphenation' of script 'html-to-pef' 'false' is not in the list of allowed values.</description>
<trace>java.lang.Throwable: Value 'false' not accepted for option 'hyphenation' of script 'html-to-pef' 'false' is not in the list of allowed values.
at org.daisy.pipeline.webservice.impl.GenericResource.getErrorRepresentation(GenericResource.java:40)
at org.daisy.pipeline.webservice.impl.JobsResource.badRequest(JobsResource.java:220)
at org.daisy.pipeline.webservice.impl.JobsResource.createResource(JobsResource.java:184)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:503)
at org.restlet.resource.ServerResource.post(ServerResource.java:1215)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:592)
at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:649)
at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:348)
at org.restlet.resource.ServerResource.handle(ServerResource.java:951)
at org.restlet.resource.Finder.handle(Finder.java:246)
at org.restlet.routing.Filter.doHandle(Filter.java:159)
at org.restlet.routing.Filter.handle(Filter.java:206)
at org.restlet.routing.Router.doHandle(Router.java:431)
at org.restlet.routing.Router.handle(Router.java:648)
at org.restlet.routing.Filter.doHandle(Filter.java:159)
at org.restlet.routing.Filter.handle(Filter.java:206)
at org.restlet.routing.Filter.doHandle(Filter.java:159)
at org.restlet.routing.Filter.handle(Filter.java:206)
at org.restlet.routing.Filter.doHandle(Filter.java:159)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
at org.restlet.routing.Filter.handle(Filter.java:206)
at org.restlet.routing.Filter.doHandle(Filter.java:159)
at org.restlet.routing.Filter.handle(Filter.java:206)
at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:84)
at org.restlet.Application.handle(Application.java:381)
at org.restlet.routing.Filter.doHandle(Filter.java:159)
at org.restlet.routing.Filter.handle(Filter.java:206)
at org.restlet.routing.Router.doHandle(Router.java:431)
at org.restlet.routing.Router.handle(Router.java:648)
at org.restlet.routing.Filter.doHandle(Filter.java:159)
at org.restlet.routing.Filter.handle(Filter.java:206)
at org.restlet.routing.Router.doHandle(Router.java:431)
at org.restlet.routing.Router.handle(Router.java:648)
at org.restlet.routing.Filter.doHandle(Filter.java:159)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
at org.restlet.routing.Filter.handle(Filter.java:206)
at org.restlet.routing.Filter.doHandle(Filter.java:159)
at org.restlet.routing.Filter.handle(Filter.java:206)
at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
at org.restlet.Component.handle(Component.java:392)
at org.restlet.Server.handle(Server.java:516)
at org.restlet.engine.ServerHelper.handle(ServerHelper.java:72)
at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:152)
at org.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:170)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:622)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.base/java.lang.Thread.run(Thread.java:829)
</trace>
</error> |
Beta Was this translation helpful? Give feedback.
-
Hi Gaute. Every now and then some script options change. That is what happened here. You can use the CLI or check the documentation to know the current list of options and allowed values. |
Beta Was this translation helpful? Give feedback.
-
Changing it to
|
Beta Was this translation helpful? Give feedback.
-
I've seen this error but can't remember exactly what caused it. It might be due to an encoding issue (which has been fixed in the upcoming version). How are you running Pipeline? Still with Docker? |
Beta Was this translation helpful? Give feedback.
-
I can not reproduce the issue with the book that you sent and the options you provided. I run these commands: docker run -it -e PIPELINE2_WS_HOST=0.0.0.0 -e PIPELINE2_WS_AUTHENTICATION=false -p 8181:8181 daisyorg/pipeline:v1.14.14 dp2 html-to-pef -o ~/Desktop/out --data ~/Desktop/185259.zip \
--html 185259.html \
--stylesheet braille-nlb.scss \
--transform "(formatter:dotify)(translator:liblouis)(dots:6)(grade:0)" \
--page-width 38 \
--page-height 29 \
--toc-depth 2 \
--maximum-number-of-sheets 50 \
--include-production-notes true \
--hyphenation none \
--allow-volume-break-inside-leaf-section-factor 10 \
--prefer-volume-break-before-higher-level-factor 1 \
--stylesheet-parameters "(skip-margin-top-of-page:true)" \
--line-spacing single \
--duplex true |
Beta Was this translation helpful? Give feedback.
-
In order for the CSS renderer to correctly render the table of contents at the beginning of the volumes, the CSS needs to specified where the TOC entries refer to. This happens through the I can't really imagine that the version of Docker would make a difference. Could it be the input? Perhaps you could email me the files again, but this time the ZIP file with both the 185259.html and braille-nlb.scss files inside. (For my own tests, I created a ZIP myself from the HTML file that you emailed me and the CSS file that you attached to the issue. Perhaps we're not using exactly the same input.) |
Beta Was this translation helpful? Give feedback.
-
The issue was resolved by using a Docker image built from my latest local development version (1.14.15-SNAPSHOT). It probably indeed had to do with the encoding related bug that I fixed locally. We still don't know what is the difference between the ZIP file that NLB's production system creates and the one that I created in my test. When the former is used, the conversion fails, but when the latter is used, the conversion succeeds (both with the 1.14.14 Docker image). But the most important is that the issue was fixed :-) |
Beta Was this translation helpful? Give feedback.
The issue was resolved by using a Docker image built from my latest local development version (1.14.15-SNAPSHOT). It probably indeed had to do with the encoding related bug that I fixed locally.
We still don't know what is the difference between the ZIP file that NLB's production system creates and the one that I created in my test. When the former is used, the conversion fails, but when the latter is used, the conversion succeeds (both with the 1.14.14 Docker image).
But the most important is that the issue was fixed :-)