2

I am minting an NFT and setting the metadata and image URI to public storage buckets on Google Cloud Platform (GCP). I am able to view the image and metadata on my wallet, but only x-ray explorer supports it.

I can't view the image on the explorer, solscan or solanaFM.

Here is the token on XRAY: https://xray.helius.xyz/token/96prF4jTGCMdEPnpMEc9mjRrR3qG3dL9KoWwN2ZrRGjD?network=devnet

2
  • 1
    What happens when you view the browser console when you try and view one? Can you comment the NFT Id here? :)
    – Tony Boyle
    Commented Oct 4, 2023 at 17:35
  • @TonyBoyle here is the NFT 96prF4jTGCMdEPnpMEc9mjRrR3qG3dL9KoWwN2ZrRGjD
    – Jimii
    Commented Oct 4, 2023 at 17:39

1 Answer 1

3

It looks like you have a CORS error from your Google Cloud Storage. If you check the network tab when you load up sol-scan or the other NFT viewers, you'll see it fails to fetching your JSON metadata, which in turn holds your image URI.

https://solscan.io/token/96prF4jTGCMdEPnpMEc9mjRrR3qG3dL9KoWwN2ZrRGjD?cluster=devnet#metadata

Here’s the documentation for Google CORS: Cross-origin resource sharing (CORS)

You'll most likely have to edit the CORS settings for your bucket: Set bucket CORS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.