The error message is:
[error] phantom worker 1 unexpected data - SyntaxError: Expected token ')'
Since the input data doesn't have an opening bracket '(' I don't know what could trigger this syntax error.
Searching this forum I got some hints that it might have to do with incompatible versions of the Highcharts Export Server and npm. But both servers have exactly the same versions installed. And one works and the other doesn't. And sometimes what worked before suddenly doesn't work anymore, or vice versa.
Here are the installed versions:
npm -v
7.5.2
node -v
v12.22.12
highcharts-export-server
v2.1.0
This is the log entry of the error:
And this is the content of the infile which is submitted to the Highcharts Export Server:phantomjs://code/worker.js:658 in loop
{"filename":"/tmp/CHART_IMAGE_C4oldq"} [object Object]
Sat Nov 19 2022 11:25:00 GMT+0100 (Central European Standard Time) [notice] phantom worker 1 - process was closed
Sun Nov 20 2022 05:34:25 GMT+0100 (Central European Standard Time) [verbose] attaching exit listeners to the process..
Sun Nov 20 2022 05:34:25 GMT+0100 (Central European Standard Time) [verbose] Pool started:
maxWorkers: 1
initialWorkers: 1
workLimit: 60
listening to process exit: true
Sun Nov 20 2022 05:34:25 GMT+0100 (Central European Standard Time) [verbose] phantom 1 - spawning worker
Sun Nov 20 2022 05:34:25 GMT+0100 (Central European Standard Time) [verbose] starting export
Sun Nov 20 2022 05:34:25 GMT+0100 (Central European Standard Time) [verbose] attempting to export from input file
Sun Nov 20 2022 05:34:25 GMT+0100 (Central European Standard Time) [verbose] phantom - received work, finding available worker
Sun Nov 20 2022 05:34:25 GMT+0100 (Central European Standard Time) [verbose] phantom - found available worker
Sun Nov 20 2022 05:34:25 GMT+0100 (Central European Standard Time) [verbose] phantom 1 - starting work
Sun Nov 20 2022 05:34:28 GMT+0100 (Central European Standard Time) [error] phantom worker 1 unexpected data - SyntaxError: Expected token ')'
{"chart":{"type":"column"},"title":{"text":"Geburtenrate, pro 1000 Einwohner"},"subtitle":{"text":"Bahamas"},"legend":{"enabled":false},"exporting":{"enabled":false,"sourceWidth":1200,"sourceHeight":630},"tooltip":{"headerFormat":"","pointFormat":"<b>{point.y}<\/b><br>{series.name}<br>","valueSuffix":" Anzahl","footerFormat":"Bahamas {point.key}"},"credits":{"enabled":false},"xAxis":{"categories":["1955","1960","1965","1970","1975","1980","1985","1990","1995","2000","2005","2010","2015","2020","2025","2030","2035","2040","2045","2050","2055","2060","2065","2070","2075","2080","2085","2090","2095","2100"],"labels":{"enabled":false}},"yAxis":{"title":{"text":"Anzahl","enabled":false},"min":0,"labels":{"enabled":false}},"series":[{"name":"Geburtenrate","data":[33.7,34,33.6,26.3,27.2,24.9,27.1,24.1,23.6,20.1,15.6,15.6,14.5,14,13.5,13,12.3,11.7,11.2,10.8,10.5,10.3,10.2,10.1,10,9.9,9.8,9.8,9.7,9.7]}],"plotOptions":{"series":{"marker":{"enabled":false,"symbol":"circle","radius":2,"states":{"hover":{"enabled":true}}}}},"colors":["#384b76"],"colorAxis":{"stops":[[0,"#3d67b6"],[1,"#384b76"]],"showInLegend":false},"sources":{"Quelle":"<a class=\"m-source-layer js-member-layer\" href=\"#\">Quelle anzeigen<\/a>"}}