getTokenIdMetadata returns different data to getAllTokenIds

I recently minted an NFT on Mumbai which can be found here https://mumbai.polygonscan.com/tx/0xc75c67570dfc0dfe3812e38822796be8aa5a77a0a8fca1b7fef93e1648292a51

When I call getNFTs for a user it gets the correct data below.

However, when I call getTokenIdMetadata it returns me this data for the same token …

{
“token_address”: “0x2050ebd262db421de662607a05be26930edbb8c8”,
“token_id”: “84”,
“block_number_minted”: null,
“owner_of”: “0x0000000000000000000000000000000000000000”,
“block_number”: null,
“amount”: “0”,
“contract_type”: “ERC721”,
“name”: " XXX NFT",
“symbol”: “DNFT”,
“token_uri”: null,
“metadata”: null,
“synced_at”: null,
“is_valid”: 0,
“syncing”: 0,
“frozen”: 0
}

Please could you advise as this seems to be a moralis issue to me.

Best Regards

Steve

UPDATE: It would seem that after a period all of this data is now coming through correctly. Is this related to needing to watch events on the moralis server?

it is not related to Moralis Server, it should be related only to web3api

do you know approximately how much it was the delay?

we found the issue it’s due to cache on that second endpoint, will push out fix today

1 Like