Hi,
Good day.
Import server has once again stopped working. Tried it on various environments to confirm.
Generate an image as it has done before. The simple sample I am using is:
{
"title": {
"text": "From JSON infile"
},
"xAxis": {
"categories": ["Jan", "Feb", "Mar", "Apr"]
},
"series": [{
"type": "column",
"data": [5, 6, 7, 8]
}, {
"type": "line",
"data": [1, 2, 3, 4]
}]
}
Get the following error:
uncaughtException: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
at validateString (internal/validators.js:125:11)
at normalizeSpawnArguments (child_process.js:411:3)
at spawn (child_process.js:545:16)
at Object.exports.exec (/usr/lib/node_modules/highcharts-export-server/node_modules/phantomjs-prebuilt/lib/phantomjs.js:72:10)
at spawnWorker (/usr/lib/node_modules/highcharts-export-server/lib/phantompool.js:127:32)
at Object.init [as initPool] (/usr/lib/node_modules/highcharts-export-server/lib/phantompool.js:330:9)
at Object.<anonymous> (/usr/lib/node_modules/highcharts-export-server/bin/cli.js:358:10)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
Install highcharts, on CentOS, MacOS and even Ubuntu. Using the following:
npm install highcharts-export-server -g --unsafe-perm --ignore-scripts
Try to convert using the following:
highcharts-export-server -infile test.json -outfile test.png -allowCodeExecution true
Even tried variations:
highcharts-export-server --infile "test.json" --outfile "test.png" -allowCodeExecution true
Nothing works.
Regards, Jarrett
Hey,
Good day.
Is there a way to donate to this project? Thanks.
Regards. Jarrett