HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

sSelmann opened this issue · comments

Hello, I'm getting the following error;

start creating NFTs.

creating NFT 1 of 500

  • rarity: original
  • dna: 09-08-07-04-05-07-06-02-06-020
    (node:12792) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
    at Object.writeFileSync (fs.js:1460:5)
    at saveMetaDataSingleFile (C:\Users\Administrator\Desktop\generative-art-opensource-main\generative-art-opensource-main\index.js:169:6)
    at C:\Users\Administrator\Desktop\generative-art-opensource-main\generative-art-opensource-main\index.js:245:4
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async startCreating (C:\Users\Administrator\Desktop\generative-art-opensource-main\generative-art-opensource-main\index.js:229:5)
    (Use node --trace-warnings ... to show where the warning was created)
    (node:12792) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
    (node:12792) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

my config file;
334fb0429d5f0fd7385b3e2f38c92e15