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
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
What should I do?
Also is there a way to know if the server is alive without sending a request?