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

error when using --enableServer 1 #617

Open
Charlescad opened this issue Dec 24, 2024 · 2 comments
Open

error when using --enableServer 1 #617

Charlescad opened this issue Dec 24, 2024 · 2 comments

Comments

@Charlescad
Copy link

Charlescad commented Dec 24, 2024

I try to run the server after having installed the package as in readme:

git clone https://github.com/highcharts/node-export-server
npm install
npm link

Then
highcharts-export-server --enableServer 1

node version: v20.10

Expected behaviour

The expected behaviour is: being able to run the server, as well as the curl code as in the example:

"Content-Type: application/json" -X POST -d "{\"infile\":{\"title\": {\"text\": \"Chart\"}, \"xAxis\": {\"categories\": [\"Jan\", \"Feb\", \"Mar\"]}, \"series\": [{\"data\": [29.9, 71.5, 106.4]}]}}" 127.0.0.1:7801 -o chart.png

Actual behavior:

Here is the error I get: on the cmd line frame where i try to highcharts-export-server --enableServer 1
`node-export-server/lib/resource_release.js:27:3)
at process. (file:////node-export-server/lib/index.js:71:11)
at process.emit (node:events:514:28)
at process._fatalException (node:internal/process/execution:178:25)
at processPromiseRejections (node:internal/process/promises:289:13)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32)

Mon Dec 23 2024 16:42:59 GMT+0100 [error] - The unhandledRejection error.
at get (file:////node-export-server/lib/browser.js:101:11)
at shutdownCleanUp (file:////node-export-server/lib/resource_release.js:27:3)
at process. (file:////node-export-server/lib/index.js:71:11)
at process.emit (node:events:514:28)
at process._fatalException (node:internal/process/execution:178:25)
at processPromiseRejections (node:internal/process/promises:289:13)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32)

curl results: not working since the server is bugging.

curl: (7) Failed to connect to 127.0.0.1 port 7801 after 2066 ms: Could not connect to server

Question

Do you know what is going on there?

@pratikahire-wtw
Copy link

I am facing the same issue!

@pratikahire-wtw
Copy link

Hi @Charlescad

Disable your VPN if it is on and then do the npm install and server startup commands. If that does not work then forcefully install [email protected], it worked for me.

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

No branches or pull requests

2 participants