NFT metadata is null

Hi! When I’m fetching data using nft/{address} (Retrieves the unique NFTs inside a given contract). Before new year everything was cool but after new year I get metadata: null for nfts which metadata is saved on my server but if I fetch token_uri for those nfts everything works fine.

So my question is why that happens. Why metadata from my server is not stored in metadata and i get “metadata: null”?

See this FAQ https://docs.moralis.io/misc/faq#why-is-metadata-null-for-some-nfts

I’m also facing this issue. According to the FAQ we should be alright as we store metadata on our own server, without any restrictions and with CORS allowed.

what is the exact case that you have? now you can also resync the metadata for a specific token_id: https://docs.moralis.io/moralis-server/web3-sdk/token#resyncmetadata

Well, we are building the wallet app with an intention to display NFT inventory, here’s an example of the API we were planning to use https://deep-index.moralis.io/api/v2/0x5aa257f92fd7575aaeec7a18ac09a06e5a2f7e5e/nft?chain=polygon (the address is an actual address with the aforementioned issue). This address contains a bunch of our test NFT tokens none of whose have metadata displayed. (Some of them are invalid but at least the most recent two contracts should be okay)

In my case, I use morlis as restapi and before new year everything was working fine, I would get nft with metadata (that is stored in my server). But after new year not even single nft contains metada

Give exact examples of exact NFTs thanks

Here it is, as returned by Moralis NFT REST api:

{
  "token_address": "0x3aa6043540b181b3e770bfab0af3c4fb471059ed",
  "token_id": "0",
  "block_number_minted": "23976450",
  "owner_of": "0x5aa257f92fd7575aaeec7a18ac09a06e5a2f7e5e",
  "block_number": "23976450",
  "amount": "1",
  "contract_type": "ERC721",
  "name": "Spatium Cats",
  "symbol": "SPC",
  "token_uri": "https://api-nft-dev.spatium.io/api/entry/a84f6e04-bda4-425d-b6b2-5329b27ca5c5",
  "metadata": null,
  "synced_at": "2022-01-21T06:33:14.160Z",
  "is_valid": 0,
  "syncing": 2,
  "frozen": 0
}

Also, on polyscan: https://polygonscan.com/token/0x3aa6043540b181b3e770bfab0af3c4fb471059ed
And also, on opensea: https://opensea.io/collection/spatium-cats

Hey guys,

your probably busy and this thread became quiet. Spooky quiet. :smiley: Any update on how we should resync the metadata?

Hi you can use the resyncMetadata endpoint.

you can also resync it directly from web3api interface: https://admin.moralis.io/web3Api