使用 metaplex 创建糖果机时如何修复此错误?

How do I fix this error when creating a candy machine with metaplex?

我正在学习这个教程“https://www.youtube.com/watch?v=4LLx7SMAOag&t=446s”,在 9:28 他告诉我们输入这个

ts-node js/packages/cli/src/candy-machine-cli.ts upload ./assets --env devnet --keypair ~/config/solana/devnet-test.json

他的结果是一个初始化的糖果机,如视频中所示。我的如下:

Beginning the upload for 150 (png+json) pairs
started at: 1634300753134
wallet public key: GLCNNSs9QA1YqxkY6Ptq3pb6UZrkRbwGw7ZUGeJK1CCg
(node:6434) UnhandledPromiseRejectionWarning: Error: failed to get info about          
account 63N3bBDCVVzdCaofQAnY5s4kcZodw1evomptDgNQ4feK: FetchError: request to https://api.devnet.solana.com/ failed, reason: connect ENETUNREACH 128.0.113.156:443
at Connection.getAccountInfo (/Users/hectorbardales/Desktop/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:2404:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Function.fetchIdl    
(/Users/hectorbardales/Desktop/metaplex/js/node_modules/@project-serum/anchor/src/program/index.ts:309:25)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:6434) 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:6434) [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.

我该怎么做才能解决这个问题? (我是 运行 这个在 visual studio 代码中 Mac)

如果还没有,也许可以尝试将 10 个 SOL 空投到上面列出的钱包地址中?但是先做5,然后再做5。

我不记得我遇到了什么错误,但那行确实有问题。

空投Sol命令很简单。 Solana 空投 x(x 是您的 SOL 数量)。

Idk,值得一试。

这是我做的例子

ts-node ./js/packages/cli/src/candy-machine-v2-cli.ts upload \
    -e devnet \
    -k ./js/cm.devnet.json \
    -cp ./js/config.json \
    -c temp \
    ./js/assets-pictures

我确保路径清晰且指向每个文件,请确保 -k 它的路径指向您在注册机时创建的文件。

ENETUNREACH 是一个 connection-related 错误。即使您可以浏览网页或做其他事情,最好的选择是使用新的互联网连接再次测试。