Closed jarrettj closed 1 year ago
Hi @jarrettj,
Sorry for the late reply. I tried to recreate the same behavior on my side but it looks like it works as intended. I've used the v9.1.0 of Highcharts as well as v12.22.12 of Node. As for the methods of exporting I used CLI and direct POST to the server. Chart exports correctly, take a look at the attached screenshot. Have you tried to call a raw CLI command without using PHP code?
Hey man,
Thanks for the reply. We do not have the server setup. We don't POST anything.
Are you using the command line as follows:
highcharts-export-server -infile {$optionsFilename} -outfile {$chartFilename} --scale $scale --allowCodeExecution true
Could the functionality on the CLI and the server method be different? Thanks.
Regards, Jarrett
Hi @jarrettj,
Yes, the same as above where the {$optionsFilename}
is an object from your previous comment. As for your question, both CLI and sending POST use the same function to start exporting, only the way how data is gathered and organized is a little bit different. Try to reinstall the export server and use the newest version.
Closing due to inactivity.
I encourage you to try out our latest Puppeteer-based version of the Export Server (here’s a short setup guide: https://github.com/highcharts/node-export-server#puppeteer-version-information) where this should no longer be a problem.
If this issue still persists in the newest version, please report it again and we will investigate it.
Hey all,
Good day.
Expected behaviour
Should generate image file the same as when running the command on the cli.
The command is straight forward. And as I said, had been working before.
The json file:
Actual behaviour
Throws a syntax error:
Reproduction steps
Simply calling PHP exec with the highcharts conversion options above. ``` node -v v12.22.12 # The latest version would not generate anything on the cli export HIGHCHARTS_VERSION=9.1.0 && npm install highcharts-export-server -g --unsafe-perm ``` Even tried to get the experimental stuff working, but that fails as well. With its own errors. Regards, Jarrett