我正在使用 Metaplex 并尝试使用以下命令上传一些图像和 JSON 文件:
1. ts-node ~/metaplex/js/packages/cli/src/candy-machine-cli.ts upload ~/metaplex/assets --env devnet --keypair ~/config/solana/devnet.json
2. ~/metaplex/js/packages/cli/src/candy-machine-cli.ts upload ~/metaplex/assets --env devnet --keypair ~/config/solana/devnet.json
我都试过了,它们都产生了循环输出:
Beginning the upload for 1 (png+json) pairs
started at: 1634856309194
wallet public key: xxxxxxxxxxxxx//I am just hiding this part
Processing file: 0
Writing indices 0-0
saving config line 0-0 failed RangeError: indeterminate span
at Structure.getSpan (/Users/hectorbardales/metaplex/js/node_modules/buffer- layout/lib/Layout.js:1225:13)
at Sequence.getSpan (/Users/hectorbardales/metaplex/js/node_modules/buffer-layout/lib/Layout.js:1075:36)
at Structure.encode (/Users/hectorbardales/metaplex/js/node_modules/buffer-layout/lib/Layout.js:1276:23)
at WrappedLayout.encode (/Users/hectorbardales/metaplex/js/node_modules/@project-serum/borsh/src/index.ts:96:24)
at Structure.encode (/Users/hectorbardales/metaplex/js/node_modules/buffer-layout/lib/Layout.js:1272:26)
at InstructionCoder._encode (/Users/hectorbardales/metaplex/js/node_modules/@project-serum/anchor/src/coder/instruction.ts:80:47)
at InstructionCoder.encode (/Users/hectorbardales/metaplex/js/node_modules/@project-serum/anchor/src/coder/instruction.ts:67:17)
at /Users/hectorbardales/metaplex/js/node_modules/@project-serum/anchor/src/program/namespace/index.ts:51:56
at ix (/Users/hectorbardales/metaplex/js/node_modules/@project-serum/anchor/src/program/namespace/instruction.ts:39:15)
at txFn (/Users/hectorbardales/metaplex/js/node_modules/@project-serum/anchor/src/program/namespace/transaction.ts:17:14)
Done. Successful = false.
upload was not successful, rerunning
另一位用户也在 Mac 上面临这个问题。除非我关闭终端,否则它会一直循环。任何想法我有什么问题或如何解决这个问题?
我的 .cache 文件夹与 devnet-temp 文件一起创建。