Unable to generate report using phantom receipe?



  • I always get below error in my logger and the pdf redering stops in console.

    error: uncaughtException: "file" argument must be a non-empty string
    date=Tue Apr 02 2019 09:47:09 GMT+0530 (IST), pid=6817, uid=1000, gid=1000, cwd=/home/vishesh/crossbow, execPath=/home/vishesh/.nvm/versions/node/v8.9.1/bin/node, version=v8.9.1, argv=[/home/vishesh/.nvm/versions/node/v8.9.1/bin/node, /home/vishesh/crossbow/bin/www], rss=176029696, heapTotal=134475776, heapUsed=117502392, external=7172092, loadavg=[1.46044921875, 0.89208984375, 1.3212890625], uptime=2638, trace=[column=11, file=child_process.js, function=normalizeSpawnArguments, line=383, method=null, native=false, column=38, file=child_process.js, function=exports.spawn, line=496, method=spawn, native=false, column=15,
    file=child_process.js, function=Object.exports.execFile, line=212, method=execFile, native=false, column=34,
    file=/home/vishesh/crossbow/node_modules/jsreport-phantom-pdf/node_modules/phantom-html-to-pdf/lib/dedicatedProcessStrategy.js, function=null, line=47, method=null, native=false, column=10,
    file=/home/vishesh/crossbow/node_modules/graceful-fs/graceful-fs.js, function=null, line=45, method=null, native=false, column=15, file=fs.js, function=FSReqWrap.oncomplete, line=135, method=oncomplete, native=false], stack=[TypeError: "file" argument must be a non-empty string, at normalizeSpawnArguments (child_process.js:383:11), at exports.spawn (child_process.js:496:38), at Object.exports.execFile (child_process.js:212:15), at /home/vishesh/crossbow/node_modules/jsreport-phantom-pdf/node_modules/phantom-html-to-pdf/lib/dedicatedProcessStrategy.js:47:34, at /home/vishesh/crossbow/node_modules/graceful-fs/graceful-fs.js:45:10, at FSReqWrap.oncomplete (fs.js:135:15)]



  • This looks like an incomplete installation. The phantomjs was probably not fully downloaded during npm install. Please try it again.



  • Thanks, Yes i am unable to install. I posted another issue that is same as this this is the link. https://forum.jsreport.net/topic/979/unable-to-install/3


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.