KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.

Export package loads blank pdf #1076

Closed Donald Orban opened this topic on on Sep 4 - 2 comments

Donald Orban commented on Sep 4

I have debugged using this https://www.koolreport.com/forum/topics/557. Below is the command from Browser.php with the error when the command is run. I'm using nodejs -V 9.3.0

PATH=$PATH:/usr/local/bin NODE_PATH=npm root -g node "C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\its404\php-puppeteer\src/js/puppeteer-api.js" "{ goto :{ waitUntil :[ load , domcontentloaded , networkidle0 , networkidle2 ]}, viewport :{ width :1024, height :800}, pdf :{ format : A4 , printBackground :true, nodeBinary : C:\Program Files\nodejs\node.exe , path : C:\Users\JD\Documents\XAM PP\htdocs\dv2.quality\vendor\koolreport\export\/tmp\/5d701d6c170283.pdf }, url : file:\/\/C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\koolreport\export\/tmp\/5d701d6c1497d2.html , n odeBinary : C:\Program Files\nodejs\node.exe , chromeBinary :null}" undefined:1 { goto :{ waitUntil :[ load , domcontentloaded , networkidle0 , networkidle2 ]}, viewport :{ width :1024, height :800}, pdf :{ format : A4 , printBackground :true, nodeBinary : C:\Program Files\nodejs\node.exe , path : C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\koolreport\export\/tmp\/5d701d6c170283.pdf }, url : file:\/\/C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\koolreport\export\/tmp\/5d701d6c1497d2.html , nodeBinary : C:\Program Files\nodejs\node.exe , chromeBinary :null} ^

SyntaxError: Unexpected token g in JSON at position 2

at JSON.parse (<anonymous>)
at Object.<anonymous> (C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\its404\php-puppeteer\src\js\puppeteer-api.js:3:28)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3
David Winterburn commented on Sep 5

Hi Donald,

Support for headless chrome via nodejs' puppeteer in our Export package is not up to date as we have a lot of user feedback about it being hard to install and run on many server environment. Therefore with headless chrome we focus on cloud export service where we set it up on our server. Please have a look at the CloudExport package:

https://www.koolreport.com/packages/cloudexport

Please try it and let us know if you have any problem with cloud export. Thanks!

Donald Orban commented on Sep 5

Well that won't be an option for me, I'm dealing with sensitive data potentially. I'll attempt to use PhantomJS. Thanks

Give tips to supporter for his good work

If you feel that supporter has done a good work, consider giving him some credit. Any amount put into the tips box below is appreciated. By doing so, you have contribtuted to the existence of KoolReport and the quality of support.

Tips box
None yet

Export