Home forums Chart Support Node JS Integration Sample prompts error message

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #23309

    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:\\ or http:\\localhost:8080 requests

    5) Error Message

    C:\AdminPortal>node main.js
    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


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.