简体   繁体   English

从 Candy Machine V2 铸造的一些 NFT 图像未显示

[英]Some NFT images minted from Candy Machine V2 are not displayed

I created Candy Machine and I noticed that some NFT images are not displayed neither on wallet or solscan.我创建了Candy Machine ,我注意到一些 NFT 图像既没有显示在钱包也没有显示在 solscan 上。 Metadata and images were uploaded and pinned on Pinata using Candy Machine upload command which finished successfully.使用 Candy Machine 上传命令将元数据和图像上传并固定在 Pinata 上,该命令成功完成。

Here is an example of broken NFT .The metadata URI is pointed to: https://blobbyboo.mypinata.cloud/ipfs/QmXbukmdMFxbCVMP3xMhWuuUcAw6rxcneJt5JpXkY86StZ and image is pointing to https://blobbyboo.mypinata.cloud/ipfs/QmPRefFtr3UzCo6pyafpYRQnZsMgZV9yoN2J8DFdJuXYP4 . Here is an example of broken NFT .The metadata URI is pointed to: https://blobbyboo.mypinata.cloud/ipfs/QmXbukmdMFxbCVMP3xMhWuuUcAw6rxcneJt5JpXkY86StZ and image is pointing to https://blobbyboo.mypinata.cloud/ipfs/QmPRefFtr3UzCo6pyafpYRQnZsMgZV9yoN2J8DFdJuXYP4 . I looked at metadata several times and could not find what is the issue and why is this happening to some of the NFTs (here is the example of valid NFT that does not have this problem).我多次查看元数据,但找不到问题所在,以及为什么某些 NFT 会发生这种情况(这里是没有此问题的有效 NFT示例)。

Questions:问题:

  • What is the problem with metadata which is causing image not to be displayed?导致图像不显示的元数据有什么问题?
  • What is the best way to fix this?解决此问题的最佳方法是什么? Metadata are mutable and I am planing to use metaboss to update URI of metadata file.元数据是可变的,我打算使用 metaboss 来更新元数据文件的 URI。 Is this correct way of fixing this problem?这是解决此问题的正确方法吗?

If you look at the URI metadata on solscan here如果您在此处查看 solscan 上的 URI 元数据

https://solscan.io/token/4ToXb3aD5YLpXqyZhcdp5ynpbXXFFjKjsaw1x94CTd7A#metadata https://solscan.io/token/4ToXb3aD5YLpXqyZhcdp5ynpbXXFFjKjsaw1x94CTd7A#metadata

and swap to the URI version of the metadata for some reason it's returning an object keypair value out of every single character in the JSON for some reason, extremely weird.并出于某种原因交换到元数据的 URI 版本,由于某种原因,它从 JSON 中的每个字符中返回一个 object 密钥对值,这非常奇怪。 I'd highly recommended reuploading this JSON metadata file and then updating the metadata URI in the NFT to make the changes.我强烈建议重新上传此 JSON 元数据文件,然后更新 NFT 中的元数据 URI 以进行更改。

Metaboss is a great tool as you have researched that can do this for you. Metaboss 是一个很棒的工具,因为您已经研究过它可以为您做到这一点。

  1. Upload new Metadata json to ipfs or arweave.将新元数据 json 上传到 ipfs 或 arweave。
  2. Use Metaboss to udpate the NFT's metadata URI.使用 Metaboss 更新 NFT 的元数据 URI。

Hopefully this fixes your issue.希望这可以解决您的问题。

While not a conclusive answer as to "why" this happened, I don't really know the why.虽然对于“为什么”发生这种情况不是一个决定性的答案,但我真的不知道为什么。 This is my first time in all the NFT's that I've seen that have behaved this way upon an upload and displaying the metadata.这是我在所有 NFT 中第一次看到在上传和显示元数据时表现出这种行为。

If that doesn't fix your issue please stop by the Metaplex Discord server and chat with us there.:)如果这不能解决您的问题,请停止 Metaplex Discord 服务器并在那里与我们聊天。:)

Edit: After further inspection it turns out your JSON file is of an invalid structure for this particular NFT so will definately need replacing.编辑:经过进一步检查,事实证明您的 JSON 文件对于此特定 NFT 的结构无效,因此肯定需要更换。

Tony Boyle has a great point with updating your json.托尼·博伊尔对更新您的 json 有很好的看法。

Your problem gets visible when you run the json through a JSON validator .当您通过JSON 验证器运行 json 时,您的问题会变得明显。 It will show that you have too many } in there.它会显示你有太多的}在那里。 Therefore parsing the JSON fails in solscan, phantom etc.因此,在 solscan、phantom 等中解析 JSON 失败。

What you have to do is你要做的是

  1. Modify the metadata to be a valid JSON file将元数据修改为有效的 JSON 文件
  2. upload it again再次上传
  3. update the NFT uri eg with metaboss (if you need to update multiple NFTs) or if its just one / a few https://sol-tools.tonyboyle.io/update-nft更新 NFT uri,例如使用 metaboss(如果您需要更新多个 NFT)或者如果它只是一个/几个https://sol-tools.tonyboyle.io/update-nft

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM