NFT storage on IPFS not displaying uploaded file

Hey everyone,

I’m having trouble with NFT Storage on IPFS. I uploaded a file and I can see it in the file list. But when I try to access it using the CID link, I get this error:

ipfs cat /ipfs/bafyreiayui2us6fpowl42vqwmjrntpewhqpfkbgcak6pt4gkpz55z2o3se/: unknown node type

Here’s the code I used:

const { NFTStorage, File } = require('nft.storage')
const client = new NFTStorage({ token: 'my_api_key' })

const result = await client.store({
  title: 'My Artwork',
  description: 'A beautiful piece',
  creator: 'John Doe',
  artwork: new File(imageData, 'masterpiece.jpg', { type: 'image/jpeg' }),
})
console.log(result.url)

The metadata.json and file show up in NFT Storage, but I can’t access the actual file. Could it be a file size issue? Any ideas on how to fix this? Thanks in advance for your help!

hey there luna_dreamy! :raised_hands: this ipfs stuff can be tricky, right? i’m kinda curious - have you tried checking the file size? sometimes big files can cause weird issues. oh, and have you looked into pinning services? they can help keep your files accessible. what kind of artwork are you uploading btw? sounds exciting! :art: maybe we could brainstorm some alternatives if this keeps being a pain. keep us posted on how it goes!

hey luna_dreamy, had similar issue. try waiting a bit, sometimes ipfs takes time to propagate. also, double-check ur cid, might be wrong. if still no luck, try uploading again or use diff ipfs gateway. good luck!