Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server not generating images: [notice] the client closed the connection before the chart was done processing #306

Closed
chrcar01 opened this issue Oct 18, 2021 · 9 comments

Comments

@chrcar01
Copy link

chrcar01 commented Oct 18, 2021

Expected behaviour

Running export server(latest in master) locally with Node 16, sending request to http://localhost:7801 should generate chart.

Actual behaviour

Client(Postman, .NET HttpClient, and curl) hangs while the server displays:

image

Reproduction steps

curl -H "Content-Type: application/json" -X POST -d '{"scale":8,"type":"png","infile":{"chart":{"type":"bar"},"title":{"text":"Bar Chart Sample"},"xAxis":{"categories":["Cat1","Cat2"]},"yAxis":{"min":0,"labels":{"overflow":"justify"}},"series":[{"name":"Cat1","data":[107,31]},{"name":"Cat2","data":[133,156]}]}}' http://localhost:7801 -o barchart.png

Notes

Switching to Node 14, it works as expected.
Node 15.14.0 also works, 16.0.0 seems to have introduced this behavior in Highcharts.

@level420
Copy link

For me the currently working configuration is node 14 with highcharts 9.2.2.
Im running the node export server in a docker container based on node:14-bullseye-slim from docker hub.

@gustavocampos
Copy link

I'm having the same problem with node:16.13.2-buster, which I tried to upgrade from node:14.17.5-buster due to some vulnerabilities and to keep Node in a LTS version

@bm64
Copy link
Member

bm64 commented Feb 4, 2022

+1

@leond08
Copy link

leond08 commented Apr 11, 2022

Can you share your docker config?

@chrcar01
Copy link
Author

This PR by @DominicAlthaus fixes the issue for me.

@tavib47
Copy link

tavib47 commented Jul 22, 2022

This PR by @DominicAlthaus fixes the issue for me.

I confirm that PR fixes the issue.

@jszuminski
Copy link
Contributor

This PR seems to solve it: #337
Duplicate issue here: #312

As I've written there:

This should no longer be a problem in the latest Puppeteer-based version of the Export Server which I encourage you to try out.

Here's a short setup guide: https://github.com/highcharts/node-export-server#puppeteer-version-information

Please feel free to report any problems you encounter with the newest version and we will investigate it. If we notice any incompatibilities (or you report them by creating an issue) we will update our docs to include all the necessary information.

@sjoshid
Copy link

sjoshid commented Aug 23, 2023

I just did npm i highcharts-export-server@3.0.0-beta.1 -g and the errors Im getting are totally inexplicable. 🤯
Upon starting server I get

$ highcharts-export-server --fromFile options.json
/LICENSE.txt: line 2: Note: command not found
/LICENSE.txt: line 3: syntax error near unexpected token `('
/LICENSE.txt: line 3: ` is concerned is _this_ particular version of the license (ie v2, not'
AppData\Roaming\npm/node_modules/highcharts-export-server/bin/cli.js: line 3: Highcharts: command not found
AppData\Roaming\npm/node_modules/highcharts-export-server/bin/cli.js: line 5: syntax error near unexpected token `c'
AppData\Roaming\npm/node_modules/highcharts-export-server/bin/cli.js: line 5: `Copyright (c) 2016-2023, Highsoft'

Im running node 18.17.1 on Windows.

@jszuminski
Copy link
Contributor

@sjoshid if you encounter any issues with the Export Server please try to create a new issue for it with a full description. Could you please specify what is in your options.json file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants