Thanks the TOC for Chrome is fantastic. However I'm trying to load the TOC data a bit differently but I'm not understanding why the <a> tags are not showing up.
joshplaetzler
@joshplaetzler
Posts made by joshplaetzler
-
RE: wkhtmltopdf random SSL error
-
wkhtmltopdf random SSL error
I seem to randomly get this error when running this template.
Warning: SSL error ignored
and then throws this at the end
at ChildProcess.exithandler (child_process.js:275:12) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
I have a template set up with a table of Contents as well as header and footers (with full html). I don't get this error all the time I would say maybe every 15-20 reports and then only that specific data that seems to be coming in for that one report. If I run an older report seems to work just fine. Then if I mess with the wkhtmltopdf settings, header, footer, css I can get it to run, but it still doesn't seem to run more consistently but it may still fail.
If its something with the SSL error from what I can tell it seems to be resolved in wkhtmltopdf 0.12.5 Are there any plans to update the recipe to use 0.12.5?
If you think its something else like maybe something in my code could be conflicting with wkhtmltopdf, any help with what I could check would be helpful.
Or if there is another recipe that could create a TOC that I could use.
Thanks for any help you can provide.
-
RE: Health-check endpoints in jsreport
NM I figured it out.
jsreport.init().then(function (i) { var app = i.express.app app.get('/ping', function(req, res){ res.send({}) }) // running }).catch(function (e) { // error during startup console.error(e.stack) process.exit(1) })
-
Health-check endpoints in jsreport
Hello,
I'm trying to setup a health-check endpoint to our jsreport server. Is it possible to add an endpoint to the jsreports or does jsreports have a health check endpoint I could utilize?
This endpoint will be sampled by AWS ELB in order to determine if the service is available.Something like the following.
Request details:
Method: GET
Path: /ping
Response details:
HTTP code - 200
Body - empty
Thanks for any help you could offer.
-
RE: Getting Error: Cannot read property '_currentElement' of null
I'm not sure what happened but it seems to have fixed itself. I will take a snapshot of the Full error if it happens again. I'm using a filesystem for templates MS SQL for data.
-
Getting Error: Cannot read property '_currentElement' of null
I have JSReports running on a windows server on AWS. Everything has been running fine for weeks but today I went to loggin and I'm now getting this error. All my api calls that I have set up still work.
What I'm seeing when I login is my list on the left and the loading icon in the middle of the screen if I click on anything in the list I get this error.
-
RE: Image not loading when Rendering in email attachment when Trigered by API
Switched it to asset and it worked great.
-
Image not loading when Rendering in email attachment when Trigered by API
I'm having issues with an image rendering in an email attachment.
I have a PDF that has an image at the top of it. When I go into JSreports and render it, it sends an email with the image at the top just like I want. If i go through the api to render the PDF it sends the PDF but without the image at the top, not sure why it would be rendering differently.
I thought maybe it had to do with the preview so I tried this. And I tried it set to false as well with no luck.
function beforeRender(req, res, done) { req.options.preview = true done() }
<img src='{#image header}'/>