icertdmn
Posts: 11
Joined: Fri Sep 30, 2022 11:35 am

Highcharts is not supporting Node 16

I have upgraded my node version from 14 to 16 and i found out that Highcharts is not supporting that node version. In this ticket ( https://www.highcharts.com/forum/viewt ... 9&t=47543 ) highcharts team is claiming that it works with node 16. I have followed the steps mention in this ticket but still I'm getting following issues:

1. on setting up highcharts server it did not asked me any question for configuration
Screenshot 2022-10-03 152054.png
Screenshot 2022-10-03 152054.png (168.21 KiB) Viewed 1749 times
2. i used the following command for testing the server :

Code: Select all

curl -H "Content-Type: application/json" -X POST -d "{ \"infile\": { \"title\": { \"text\": \"Steep Chart\" }, \"xAxis\": { \"categories\": [ \"Jan\", \"Feb\", \"Mar\" ] }, \"series\": [ { \"data\": [ 29.9, 71.5, 106.4 ] } ] }, \"width\": 1200 }" http://xx.xx.xxx.xxx:7801  -o output-file.png
Screenshot 2022-09-30 141333.png
Screenshot 2022-09-30 141333.png (40.49 KiB) Viewed 1749 times
This command runs forever , i have to manually shut down this command and also i'm getting this error .
Screenshot 2022-10-03 153405.png
Screenshot 2022-10-03 153405.png (61.11 KiB) Viewed 1749 times

Thanks in Advance,
Arzoo
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Highcharts is not supporting Node 16

Hi there Arzoo,

Welcome to our forum and thank you for contacting us with your question!

Recently, we have made a PR that has fixed this issue. It is merged with the master branch on GitHub, but it's not on the npm yet.
Could you please uninstall the npm package for export server, and install it directly from our GitHub?

GitHub: https://github.com/highcharts/node-export-server
Pull Request: https://github.com/highcharts/node-expo ... r/pull/368

In case of any other questions, please do not hesitate to contact us with any other questions,
Best regards!
Kamil Musiałowski
Highcharts Developer
icertdmn
Posts: 11
Joined: Fri Sep 30, 2022 11:35 am

Re: Highcharts is not supporting Node 16

Hi Team,

Thanks for your help. I have pulled the code from the mention link and after doing that i followed the steps mentioned here, https://github.com/highcharts/node-export-server

But i'm not able to run the server and getting this error
error.png
error.png (229.76 KiB) Viewed 1727 times
can you please let me know the exact steps to be followed after pulling the code.

Thanks in Advance,
Arzoo
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Highcharts is not supporting Node 16

Hello there,

Thank you for following the steps!

Since there is an error in the node_modules folder, could you please delete the whole folder and execute npm install to install the modules again?

Let me know how that went,
Best regards!
Kamil Musiałowski
Highcharts Developer
icertdmn
Posts: 11
Joined: Fri Sep 30, 2022 11:35 am

Re: Highcharts is not supporting Node 16

Hi Kamil,

Thanks for the help with installation. i've installed highcharts from the git and on running following command

Code: Select all

curl -H "Content-Type: application/json" -X POST -d "{ \"infile\": { \"title\": { \"text\": \"Steep Chart\" }, \"xAxis\": { \"categories\": [ \"Jan\", \"Feb\", \"Mar\" ] }, \"series\": [ { \"data\": [ 29.9, 71.5, 106.4 ] } ] }, \"width\": 1200 }" http://xx.xx.xxx.xxx:7801 -o output-file.png
i'm getting this error
output-file.png
output-file.png (23.95 KiB) Viewed 1716 times
Thanks & Regards
Arzoo
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Highcharts is not supporting Node 16

Hi there,

Thank you for following the steps, it's great to see some progress!

Have you tried running that command node build.js? Seems like the export server is missing the initial config.
Of course, make sure to run it in the export server directory (where you have installed it).

Let me know how that went,
Regards!
Kamil Musiałowski
Highcharts Developer
icertdmn
Posts: 11
Joined: Fri Sep 30, 2022 11:35 am

Re: Highcharts is not supporting Node 16

Hi Kamil,

After that command it started working . Thank you so much for your support.

Regards,
Arzoo
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Highcharts is not supporting Node 16

You're welcome! That's great to hear that it's working now.

In case of any other questions, do not hesitate to ask,
Best regards!
Kamil Musiałowski
Highcharts Developer
icertdmn
Posts: 11
Joined: Fri Sep 30, 2022 11:35 am

Re: Highcharts is not supporting Node 16

Hi Kamil,

Highchart server is working fine on one machine but when i try to install it on other machine it the following issue was observed

1. on running the test cmd

Code: Select all

curl -H "Content-Type: application/json" -X POST -d "{ \"infile\": { \"title\": { \"text\": \"Steep Chart\" }, \"xAxis\": { \"categories\": [ \"Jan\", \"Feb\", \"Mar\" ] }, \"series\": [ { \"data\": [ 29.9, 71.5, 106.4 ] } ] }, \"width\": 1200 }" http://xx.xx.xxx.xxx:7801  -o output-file.png
it is asking me to run

Code: Select all

node build.js
to complete the configuration.

i ran that cmd multiple times and it was successful but result was same .

i followed this ticket viewtopic.php?f=9&t=47543&start=15 but could find resolution .

2. The server which is working on one machine , if make request from a different machine to that it says "Failed to connect to xx.xx.xxx.xxx:7801 port.

on both machines i'm using the same node (16.15.0) and npm (8.8.0)

Thanks and Regards ,
Arzoo
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Highcharts is not supporting Node 16

Hi Arzoo,

Thanks for contacting me again!

A standard question is, have you tried to reinstall node, and the export server on the second machine?
Could you tell me, whether there are some differences between both computers in terms of system?
Also, have you tried to install export server through npm, instead of installing it from the GH repository?

Thank you in advance,
Regards!
Kamil Musiałowski
Highcharts Developer
icertdmn
Posts: 11
Joined: Fri Sep 30, 2022 11:35 am

Re: Highcharts is not supporting Node 16

Hi Kamil,
Yes, i have tried to reinstall it multiple time both node and export server.
The computer where it's working has OS windows 11 other one has windows 10. Other then that everything else is same, node (16.15.0) and npm (8.8.0).
It was suggested by you that export server through npm won't support node 16, that's why i only use GH.

Other then that, on the computer where export server is working, if i make request from the different computer, using testing cmd and ip of the computer where export server is working it should able to produce result. But instead it says "Failed to connect to xx.xx.xxx.xxx:7801 port."

Thanks in Advance,
Arzoo
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Highcharts is not supporting Node 16

Thank you for the details!

From what I understand, the export server is working on both of your computers, but you are not able to make a request from other computer.

Maybe there is a problem with the server configuration? Something that has to do with the CORS policy?
I'm not an expert in servers, but from this point of view it looks like it's more of your server problem, not a Highcharts Export Server one.
Kamil Musiałowski
Highcharts Developer
icertdmn
Posts: 11
Joined: Fri Sep 30, 2022 11:35 am

Re: Highcharts is not supporting Node 16

Hi Kamil,

Highcharts is not working for one of my machine, after installing and configuring everything it throws an error saying
Capture.PNG
Capture.PNG (30.75 KiB) Viewed 1648 times
even though the cli.js file is present at the mention location.

i have checked the path and tried installing highcharts multiple time.

can you please help me to resolve it .
Thanks
Arzoo
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Highcharts is not supporting Node 16

Hi,

Could you check if you have the server installed globally?
npm list -g -depth 0 highcharts-export-server

If not, please repeat the installation from GH and use the options described in the installation steps to link the local to the global version:
https://github.com/highcharts/node-expo ... er#install
git clone https://github.com/highcharts/node-export-server
npm install
npm link


After these steps, try to export or run the server and let us know what the result is.

Kind Regards
icertdmn
Posts: 11
Joined: Fri Sep 30, 2022 11:35 am

Re: Highcharts is not supporting Node 16

Hi Piotr,

if you through the previous conversation you'll find that i have installed it from GH, i have followed each step and got the success message for each step. But when i try to start the server it's showing me that error. Even if i run the cmd in the installed folder. Please help me to resolve that issue.

Thanks
Arzoo

Return to “Highcharts Usage”