dperiyas
Posts: 12
Joined: Thu Feb 24, 2022 1:01 pm

Export server not configured error

Tue Jul 05, 2022 8:10 am

Hi,
After enabling the highcharts-export-server by running highcharts-export-server --enableServer 1
we got export-server has started
Capture.PNG
Capture.PNG (5.58 KiB) Viewed 510 times

But after starting the server we run the below curl command
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 }" localhost:7801 -o output-file.png

Then in the exported output file it is shown as Export server not configured like below we didnot get proper export file
output-file.png
output-file.png (23.95 KiB) Viewed 510 times
Even after running node build.js command in export server root multiple times we got the same error in output file

Could please tell why this issue occurred when we try to export file as we are trying to implement highcharts-export-server in angular application

kamil.m
Posts: 389
Joined: Thu May 19, 2022 1:33 pm

Re: Export server not configured error

Tue Jul 05, 2022 2:51 pm

Hi there,

I have forwarded your request to our export server developer. Once I get the answer, I'll get back to you as soon as possible.

Thank you for your patience,
Best regards!
Kamil Musiałowski
Highcharts Developer

kamil.m
Posts: 389
Joined: Thu May 19, 2022 1:33 pm

Re: Export server not configured error

Wed Jul 06, 2022 10:56 am

Hi,

We have already discussed similar (or even the same problems) on Stack Overflow, and this forum as well.

Please take a look at the solutions provided in the sources below.

Stack Overflow: https://stackoverflow.com/questions/667 ... ort-server
Forum: viewtopic.php?f=9&t=48325

Let me know if you have managed to fix the issue,
Best regards!
Kamil Musiałowski
Highcharts Developer

dperiyas
Posts: 12
Joined: Thu Feb 24, 2022 1:01 pm

Re: Export server not configured error

Fri Jul 08, 2022 12:56 pm

Hi,
Even with the solutions provided in the below sources not able to resolve the issue.

kamil.m
Posts: 389
Joined: Thu May 19, 2022 1:33 pm

Re: Export server not configured error

Fri Jul 08, 2022 2:05 pm

Hi there,

Are you sure that you have typed 'y' in the first question about the license? That a quite an easy mistake to do. Please reinstall the export server, run npm install again, and make sure to enter 'y' in the first question about the license.

Let me know how that worked!
Regards
Kamil Musiałowski
Highcharts Developer

dperiyas
Posts: 12
Joined: Thu Feb 24, 2022 1:01 pm

Re: Export server not configured error

Tue Jul 12, 2022 11:05 am

Hi,
Yes I had typed 'y' in the first question about the license. Also tried reinstall the export server even though got the same error while run curl command.
Are you sure that you have typed 'y' in the first question about the license? That a quite an easy mistake to do. Please reinstall the export server, run npm install again, and make sure to enter 'y' in the first question about the license.
As per the below reference we run the command multiple times after that also we got same issue.
viewtopic.php?f=9&t=48325
node node_modules\highcharts-export-server\build.js

kamil.m
Posts: 389
Joined: Thu May 19, 2022 1:33 pm

Re: Export server not configured error

Wed Jul 13, 2022 6:51 pm

Hi there,

We are investigating this issue. In the meantime, could you please tell me which Node.js version are you using, and did you try to install the export server on different Node versions?

Thank you for your patience.
Kamil Musiałowski
Highcharts Developer

dperiyas
Posts: 12
Joined: Thu Feb 24, 2022 1:01 pm

Re: Export server not configured error

Thu Jul 14, 2022 7:56 am

Hi there,

We are investigating this issue. In the meantime, could you please tell me which Node.js version are you using, and did you try to install the export server on different Node versions?
Yes we tried installing export server with different Node versions.
Initially we used v12.19.0 node.js version while installing export server. We got the issue as I mentioned earlier.

And after that in some references they asked to try with latest node version so we updated the node.js version to v16.15.0. In this latest version also we got same issue.

kamil.m
Posts: 389
Joined: Thu May 19, 2022 1:33 pm

Re: Export server not configured error

Fri Jul 15, 2022 1:56 pm

To get a better understanding of your issue, I would ask you to kindly answer the questions below:

1. Please give us a detailed explanation of how you install the dev server (do you install it as a dependency in your project or do you pull it from the GitHub repository or as a global package?)
2. Do you get the prompt with export server questions in any of these cases (when running node build, or during the installation)?
3. Have you tried any other methods aside from POST through curl? Please try to export a JSON file with your chart through CLI.
4. Have you ever used the export server? If yes, did it work and did you make any updates?

Thank you in advance,
Regards!
Kamil Musiałowski
Highcharts Developer

dperiyas
Posts: 12
Joined: Thu Feb 24, 2022 1:01 pm

Re: Export server not configured error

Mon Jul 18, 2022 11:44 am

1. Please give us a detailed explanation of how you install the dev server (do you install it as a dependency in your project or do you pull it from the GitHub repository or as a global package?)
2. Do you get the prompt with export server questions in any of these cases (when running node build, or during the installation)?
3. Have you tried any other methods aside from POST through curl? Please try to export a JSON file with your chart through CLI.
4. Have you ever used the export server? If yes, did it work and did you make any updates?
1. Please give us a detailed explanation of how you install the dev server (do you install it as a dependency in your project or do you pull it from the GitHub repository or as a global package?)
We installed it as a global package in our angular project.
2. Do you get the prompt with export server questions in any of these cases (when running node build, or during the installation)?
Yes when running node build
3. Have you tried any other methods aside from POST through curl? Please try to export a JSON file with your chart through CLI.
We tried to export the module in our project but when export highcharts-export-server we are getting error in compile time itself.
4. Have you ever used the export server? If yes, did it work and did you make any updates?
We didnot used export server. This is the first time we are trying to use export server.

kamil.m
Posts: 389
Joined: Thu May 19, 2022 1:33 pm

Re: Export server not configured error

Mon Jul 18, 2022 1:43 pm

1. I wouldn't suggest using a global packed inside a project. Instead, you can install the export server as a dependency and try to use it from there (as a node module).
A package should be installed globally when it provides an executable command that you run from the shell (CLI), and it's reused across projects.

In general, if you could explain to us how are you going to use the export server in your application - that would make it a bit easier for us to help you run it.

3. Try exporting a chart through CLI to see if the dev server is even configured properly.

GitHub instructions: https://github.com/highcharts/node-export-server

Regards!
Kamil Musiałowski
Highcharts Developer

dperiyas
Posts: 12
Joined: Thu Feb 24, 2022 1:01 pm

Re: Export server not configured error

Mon Jul 18, 2022 2:20 pm

Hi,
1. I wouldn't suggest using a global packed inside a project. Instead, you can install the export server as a dependency and try to use it from there (as a node module).
A package should be installed globally when it provides an executable command that you run from the shell (CLI), and it's reused across projects.

In general, if you could explain to us how are you going to use the export server in your application - that would make it a bit easier for us to help you run it.
Regards!
We are trying to use export server as a node module.(https://github.com/highcharts/node-expo ... ejs-module)

We had tried install export server as a module.
Like after install the export server as given in the ( https://github.com/highcharts/node-expo ... er#install )link
npm install highcharts-export-server -g

We tried to export the highcharts-export-module as in the below reference
https://github.com/highcharts/node-expo ... ejs-module
But when we add below export code we are not able to compile our application.
const exporter = require('highcharts-export-server');
While compiling we are getting error related to this export server module like some files are not found in module.

kamil.m
Posts: 389
Joined: Thu May 19, 2022 1:33 pm

Re: Export server not configured error

Mon Jul 18, 2022 3:07 pm

Thank you for the quick reply!

Your issue seems to be quite simple. You are trying to reference a globally installed module (only by providing a module name in require method).

Please do the following:
Install the export server from your application by running inside it:

Code: Select all

npm i highcharts-export-server
It will be added as a dependency in your project. Then, find a relative path to your module (something like ./node_modules/highcharts-export-server), and run build on that (node ./node_modules/highcharts-export-server/build). In the prompt message, set everything that you need to 'y', and then you should be able to run it from your app.

I hope that now it will work in your project, so please let me know how this solution worked for you,
Good luck!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Stock”