首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在使用metaplex创建糖果机器时修复此错误?

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

Stack Overflow用户
提问于 2021-10-15 12:41:56
回答 1查看 1.4K关注 0票数 0

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

代码语言:javascript
复制
ts-node js/packages/cli/src/candy-machine-cli.ts upload ./assets --env devnet --keypair ~/config/solana/devnet-test.json

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

代码语言:javascript
复制
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.

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

EN

回答 1

Stack Overflow用户

发布于 2021-11-03 05:54:02

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

我不记得我得到了什么错误,但我确实有关于这行的问题。

空投索尔的命令很简单。Solana Airdrop x (x是你的索尔量)。

值得一试。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69584916

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档