onflow / kitty-items

Kitty Items: CryptoKitties Sample App

Home Page:https://kitty-items.onflow.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Startup script for Testnet failure (Tutorial)

codingone21 opened this issue · comments

Describe the bug
I’m unable to create new accounts in testnet following the ‘start’ tutorial (Basically, I’m unable to create new accounts in Testnet following the ‘start’ tutorial.

Error Log:

? Paste your new testnet account address here: 0x844d6e3cae746894
node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
    at new NodeError (node:internal/errors:371:5)
    at Function.from (node:buffer:323:9)
    at bootstrapNewTestnetAccount (file:///Users/hannahlee/Documents/Projects/kitty-items/.ki-scripts/startup.js:269:24)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async file:///Users/hannahlee/Documents/Projects/kitty-items/.ki-scripts/startup.js:433:9 {
  code: 'ERR_INVALID_ARG_TYPE'

I think this is caused by a wrong file name called during startup (.template vs .example file) BUT after the fix I still can’t deploy the contracts). I think this is caused by a wrong file name called during startup (.template vs .example file) BUT after the fix I still can’t deploy the contracts.

Error Log:

? Paste your new testnet account address here: 0x888a858f70ee9f75
ℹ Testnet envronment config was written to: .env.testnet

⠴ Deploying contracts to:  0x888a858f70ee9f75 (testnet)node:child_process:399
      ex = new Error('Command failed: ' + cmd + '\n' + stderr);
           ^

Error: Command failed: flow project deploy -o json --network=testnet -f flow.json -f flow.testnet.json --update
❌ Command Error: failed to deploy all contracts
    at ChildProcess.exithandler (node:child_process:399:12)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Socket.<anonymous> (node:internal/child_process:451:11)
    at Socket.emit (node:events:526:28)
    at Pipe.<anonymous> (node:net:687:12) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'flow project deploy -o json --network=testnet -f flow.json -f flow.testnet.json --update',
  stdout: '\n',
  stderr: '❌ Command Error: failed to deploy all contracts'
}

To Reproduce
Steps to reproduce the behavior:

  1. Following the tutorial, run on Testnet and create a new account through the faucet
  2. Paste in the new faucet

Expected behavior
Startup script runs, populates configurations, and deploys contracts

Screenshots/Logs/Output
If applicable, add screenshots or logs to help explain your problem.

Environment (Optional - Version, OS, Browser, etc.)
Flow CLI: 0.39.1

Additional context (Optional - Anything else about the bug)