Thursday 20 April 2017

jsreport: Error Ocurred - Error during rendering report mac

I'm using jsreport with nodejs on mac and I get the following error

I already modified folder permissions and ran as root but it does not work. The sample code literally copied it and paste it directly from the official site https://jsreport.net/learn/pdf-reports-in-nodejs

server.js

var http = require('http');
var jsreport = require('jsreport');

http.createServer(function (req, res) {

  jsreport.render("<h1>Hello world</h1>").then(function(out) {
    out.stream.pipe(res);
  }).catch(function(e) {    
    res.end(e.message);
  });

}).listen(1337, '127.0.0.1');

Error:

Error during rendering report: Command failed: /Users/macbookpro/Downloads/reports/node_modules/phantom-html-to-pdf/node_modules/phantomjs/lib/phantom/bin/phantomjs --ignore-ssl-errors=yes --web-security=false --ssl-protocol=any /Users/macbookpro/Downloads/reports/node_modules/phantom-html-to-pdf/lib/scripts/standaloneScript.js /var/folders/0f/6nfvtgxn069237lpmp00ldvr0000gn/T/jsreport/ee4b46e0-261c-11e7-a041-db0530c5a883settings.html

Error



via Alan Olivares

No comments:

Post a Comment