Comments (3)
I have encountered the same problem with v1.0.15.
At last, i found that , the infile field requries an string, not a object. That is, you can try it like below:
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:3000 -o mychart.png
from node-export-server.
I am also struggling with somehow same problem:
When I sent request through postman application, I am getting this error:
Thu Jun 07 2018 15:01:10 GMT+0530 (India Standard Time) [error] socket error: { Error: Parse Error, bytesParsed: 0, code: 'HPE_INVALID_METHOD', Packet:<Buffer 16 03 01 02 00 01 00 01 fc 03 03 74 3d ad 38 d0 cb 27 88 ec 95 9b c7 4c 87 9a 09 ed 26 7e ad 74 5d 90 50 7c ba ec 7d 26 28 c1 b1 20 3d f3 80 05 92 54 .. > }
My Postman request is :
URL: https://localhost:3003
Content-Type:application/json
Body: { "xAxis": { "categories": [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]x }, "series": [ { "data": [1,3,2,4], "type": "line" }, { "data": [5,3,4,2], "type":"line" } ] }
from node-export-server.
HTTP exports work as expected (tested on: https://github.com/highcharts/node-export-server/tree/enhancement/puppeteer).
from node-export-server.
Related Issues (20)
- Stacked columns render as a single pixel on export HOT 1
- Is .env file in root is now ignored? HOT 3
- Unable to setup on Ubuntu Server 22.04 HOT 3
- Stop creation of log and tmp folder HOT 6
- Add a `mapChart` constructor to the UI HOT 1
- unable to export variable-pie chart type throwing error HOT 2
- Chart renders in 2 different layouts (random) HOT 1
- Inquiry Regarding Enhancement Request HOT 1
- Styled mode svg export while using as server, no css applied at all HOT 4
- Error: ENOENT: no such file or directory, open '/app/dist//../templates/template.html' HOT 1
- Inject css variables using nodejs module HOT 2
- chart rendering breaks around 5000 x-Axis data points HOT 6
- Font missing in export.highcharts.com HOT 6
- Docker file for V4 HOT 4
- The Google fonts are not installed on the production server HOT 1
- The width and height are only taken from sourceHeight HOT 1
- column chart export https://export.highcharts.com/ 500 error HOT 1
- Cannot add series-on-point module to the export server HOT 3
- Highcharts.AST.allowedAttributes HOT 6
- Preview and download are not generating in windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-export-server.