I’m having trouble with my NFTs. I made 8 of them on the Polygon blockchain using an ERC721 contract. The pictures are hosted on my own server instead of using IPFS. I even set up all the JSON configuration files.
I deployed the contract through Remix on Polygon and minted the NFTs. Everything initially worked, but now I’m only seeing placeholder images in Metamask, Polygonscan, and OpenSea.
I’ve encountered similar issues with NFT image display before. The problem might be related to your server configuration or caching. First, ensure your server is correctly serving the image files and JSON metadata. Check the file permissions and MIME types. If using Apache, you might need to add appropriate headers in your .htaccess file.
Next, verify that your JSON files are properly formatted and the image URLs are correct. Sometimes, small typos can cause big problems. Also, consider implementing CORS headers if your server is different from where the NFTs are being viewed.
If all else fails, you might want to consider switching to IPFS for hosting. It’s more reliable for NFTs and eliminates many server-related issues. Just update your baseURI in the contract to point to the IPFS gateway.
Lastly, be patient. Sometimes marketplaces and wallets take time to update their caches. Give it 24-48 hours and check again.
yo, had similar issue. check ur server logs for any errors. make sure the image files r actually there and accessible. sometimes its just a simple typo in the file path. also, try clearing ur browser cache or use incognito mode to see if its a caching problem. good luck man!
i’ve been messing around with nfts too and ran into some weird stuff like that. have you double-checked that your server is actually online and responding? sometimes my hosting provider does maintenance and i forget about it lol.
also, what about the file names? are they exactly matching what’s in your json files? i once spent hours trying to figure out why my nfts weren’t showing up, only to realize i had used .PNG instead of .png in the file names
oh, and have you tried viewing them on a different device or network? sometimes my home internet acts up and messes with how nfts display.
btw, your contract looks pretty solid! i’m curious tho, have you considered adding any cool functionality to it? like maybe letting users stake their nfts or something? could be a fun project!
let us know if you figure it out! i’m super interested in seeing your art when it’s all working properly