Home forums Using CanvasJS Node JS Integration Sample prompts error message

This topic contains 2 replies, has 1 voice, and was last updated by  atakan 2 weeks, 2 days ago.

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

    atakan
    Member

    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

    atakan
    Member

    Here is the link provided by canvasjs team

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

    #23311

    atakan
    Member

    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.