TheEngineer
Posts: 22
Joined: Thu Mar 19, 2020 4:20 pm

Random errors while running Export Server

Hello,

I am getting these exceptions when running your server.

Code: Select all

socket error: { Error: read ECONNRESET at exports._errnoException (util.js:1033:11) at TCP.onread (net.js:584:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
and 
Error: This socket has been ended by the other party
and sometimes that the input is wrong although it works later
I also tried testing the availability with a call like this one:

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]}]}}' 127.0.0.1:7801 -o mychart.png
Sometimes it works and sometimes it returns 400 Bad Request.

What should I do?

Also is there a way to know if the server is alive without sending a request?
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Random errors while running Export Server

Hi,

Thank you for contacting us with your issue.

After installing the server:
https://github.com/highcharts/node-expo ... er#install

Test it on your local port:
npx ./bin/cli.js --enableServer 1

Then send a request to this port:
curl -H "Content-Type: application / json" -X POST -d '{"infile": {"series": [{"data": [29.9, 71.5, 106.4]}]}}' 127.0.0.1: 7801 -o curl.png

Or test port /health:
- Send GET to localhost: 7801 / health.
- Check if port 7801 is in use.

Let me know what the result was.

Kind Regards
TheEngineer
Posts: 22
Joined: Thu Mar 19, 2020 4:20 pm

Re: Random errors while running Export Server

Locally it works and I get a file after the POST request (although it's not readable), but when deployed I get a lot of errors. I am using version v2.0.28. Will it work if I update to 2.1.0?
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Random errors while running Export Server

Hello,

Please update your version to the newer one, and let us know if the error still occurs.

Waiting for your feedback,
Thank you!
Kamil Musiałowski
Highcharts Developer
TheEngineer
Posts: 22
Joined: Thu Mar 19, 2020 4:20 pm

Re: Random errors while running Export Server

The problem was, that the server did not have enough memory.
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Random errors while running Export Server

Thank you for sharing that with the rest of forum users, in case of any other issues related to Highcharts feel free to contact us.

Best regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”