Metadeta not updated in "getAllTokenIds" Web3 API Call

I’m trying to run this API call, it successfully runs but the response is incomplete

I’ve attached an image below and here metadeta is null for token id 17857 but if you visit the token uri”, metaeta is present there. Any idea why is it happening?

Got it, thanks for the response, but in some cases, token_uri is also invalid so it is not possible to get metadata.

Created a new thread for the same: Invalid token_uri and metadeta null in "getAllTokenIds" Web3 API Call