Thanks, I fix the timeout issue as your solution, move the templatingEngines node to root level and set a root level timeout value, then the preview and print will not timeout.
hexl84
@hexl84
Posts made by hexl84
-
RE: Generate pdf from docx template by unoconv always get timeout error.
-
Generate pdf from docx template by unoconv always get timeout error.
Hi, we want generate pdf from docx template in js report. We find the unoconv extension can do it, so we install unoconv on our js report server, the preview will timeout sometimes. if I retry print, it will works good and print a pdf.
Our website is send the docx template bytes[] and json data both from java script, then js report server return the pdf to website. But the js report server always return timeout error. We check the auto clean folder, the doxc file created success the pdf file also created but the content didn't all convert.
We set the timeout in js report config, but it looks not work."scripts": { "timeout": 600000, "strategy": "http-server" }, "sample-template": { "createSamples": true }, "chrome-pdf": { "timeout": 600000 }, "unoconv": { "command": "python C:/jsreportapp/unoconv.js", "timeout": 600000000 }, "templatingEngines": { "timeout": 6000000, "strategy": "http-server" }
Below is our send print request
var printCommand = { "template": { "recipe": "docx", "engine": "handlebars", "docx": { "templateAsset": { "content": command.content, //word template bytes[] "encoding": "base64" } }, "unoconv": { format: "pdf" } }, "data": command.data //json data };
Below is the timeout error:
"Error: Timeout error during executing script
at Timeout._onTimeout (C:\jsreportapp\node_modules\script-manager\lib\manager-servers.js:149:25)
at ontimeout (timers.js:498:11)
at Timer.unrefdHandle (timers.js:611:5)
From previous event:
at Reporter.executeScript (C:\jsreportapp\node_modules\jsreport-core\lib\reporter.js:360:47)
at AsyncFunction.reporter.afterRenderListeners.add (C:\jsreportapp\node_modules\jsreport-unoconv\lib\unoconv.js:25:35)
at C:\jsreportapp\node_modules\listener-collection\lib\listenerCollection.js:171:33
at C:\jsreportapp\node_modules\listener-collection\lib\listenerCollection.js:151:16
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)" -
RE: How can I use .pfx certification in https config from godaddy ?
@jan_blaha Thanks for your great help, the SSL works now. I didn't find any pfx config in the document.
-
How can I use .pfx certification in https config from godaddy ?
I have a report server run on a windows server, I would open the https on it. I have a wordwild SSL for my server and I get a *.pfx certification from my IIS. How can I use in report server ? The report server only accept *.cert and *..cert ?
"httpPort": 5489, "certificate": { "key": "certificates/jsreport.net.key", "cert": "certificates/jsreport.net.cert" },