You must be logged in to post your query.
Home › Forums › Chart Support › Node JS Integration Sample prompts error message
Tagged: Node JS Integration sample CanvasJS files
1) I have downloaded sample NodeJS integration sample zip
2) Extracted 3 files
to the same folder including instructions.txt
3) From command prompt C:\AdminPortal>node main.js
4) Browser request http:\\127.0.0.1:8080 or http:\\localhost:8080 requests
5) Error Message
C:\AdminPortal>node main.js _http_outgoing.js:642 throw new TypeError(‘First argument must be a string or Buffer’); ^
TypeError: First argument must be a string or Buffer at write_ (_http_outgoing.js:642:11) at ServerResponse.write (_http_outgoing.js:617:10) at ReadFileContext.callback (C:\express\AdminPortal\main.js:6:9) at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)
Here is the link provided by canvasjs team
the sample project from this link to integrate CanvasJS with NodeJS – https://goo.gl/ZnBYvz
Resolved: Unzipped the files and overwrite the files
Thanks
You must be logged in to reply to this topic. Login/Register