Search code examples
solanametaplexpinata

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. Metadata and images were uploaded and pinned on Pinata using Candy Machine upload command which finished successfully.

Here is an example of broken NFT.The metadata URI is pointed to: and image is pointing to. 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).

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. Is this correct way of fixing this problem?

Solution

  • Tony Boyle has a great point with updating your json.

    Your problem gets visible when you run the json through a JSON validator. It will show that you have too many } in there. Therefore parsing the JSON fails in solscan, phantom etc.

    What you have to do is

    1. Modify the metadata to be a valid JSON file
    2. upload it again
    3. update the NFT uri e.g. with metaboss (if you need to update multiple NFTs) or if its just one / a few https://sol-tools.tonyboyle.io/update-nft