[SOLVED] Two nfts not in nft collection and no metadata or token uri available through api

Iā€™m doing a little project for a nft community Iā€™m in. The minting was slow and it took some weeks to finally mint all 2222 nfts in the collection. Currently the moralis API returns only 2220 and the last update to the contract metadata was on 2022-08-05T00:00:00.000Z.

If I use the getNFTMetadata function I receive the following response:

{
ā€œmessageā€: ā€œNo metadata found! Try again laterā€
}

I tried using the reSyncMetadata for both tokens but even after several days the metadata doesnā€™t change.

Using getContractNFTs gives me the following response:

{
ā€œtotalā€: 2220,
ā€œpageā€: 0,
ā€œpage_sizeā€: 100,
ā€¦
}

It looks like there is no token_uri or metadata for two specific nfts (maybe because of the long minting phase). How can I proceed to receive the missing metadata for those two nfts?

Contract: 0x318F6A35547696848CB0C251C46de67Ee1511296
Missing NFTs token_id: 361, 362

Thank you very much in advance.

regards ic3lotus

Iā€™ll check later. Do you know how to check on chain the token uri for those 2 token ids?

On what chain it is?

Hey cryptokid,
Thanks for the quick reply.

Yes I know how to check it on chain (it is etherium in that case). Here are both token uris:
ipfs://Qmdpk1fyfN4QRtg52x7JqE5LEQZbBRb8crcVQNvsRbmLP8/361.json
ipfs://Qmdpk1fyfN4QRtg52x7JqE5LEQZbBRb8crcVQNvsRbmLP8/362.json

If there is anything that you need to figure this one out, let me know.

that is enough for now, thanks, weā€™ll have to investigate

1 Like

what is the first time when you noticed this happening? did it work before?

It was some days ago. I was still writing the code to not get into the api limit and just completed it this weekend. So the first time I was able to check the response I get (for all nfts from the contract) was on Friday.

The only thing I can imagine is that the contract was last sync before the mint out happened. Because the last sync was on the 5th of August and Iā€™m pretty sure the mint our happened at the end of August.

you can try again now to see if it works as expected

Wow!
It works as expected and shows a total of 2222 items and Iā€™m also able to get the metadata for the missing two nfts.

Thank you so much for the really fast help in this. Really appreciate it.

1 Like