Home Forums Chart Support Node JS Integration Sample prompts error message

Node JS Integration Sample prompts error message

Viewing 3 posts - 1 through 3 (of 3 total)
  • #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:\\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)

    #23310

    Here is the link provided by canvasjs team

    the sample project from this link to integrate CanvasJS with NodeJS – https://goo.gl/ZnBYvz

    #23311

    Resolved: Unzipped the files and overwrite the files

    Thanks

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

You must be logged in to reply to this topic.