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!