NFT API - getNFTOwners() missing some token metadata in response

I’m using getNFTOwners in the SDK to return all the tokens from a contract as:

const res = await Moralis.EvmApi.nft.getNFTOwners({
    chain: '0x1',
    format: 'decimal',
    address: 0xecf1607512ad6c3723991ddcaa1b17d821554a05,
})

This returns all the tokens but there are five tokens where the metadata is null, e.g. token_id: 1900050012

"metadata":null,"last_token_uri_sync":"2022-12-23T18:02:37.841Z","last_metadata_sync":null

Looking at other reports it sounds like it may be a caching issue. Is this something I can trigger a refresh of myself?

there is a function to trigger a metadata resync per token id:

Thanks, this has resolved the issue. Please note that the example code for that function returns an error:

Moralis SDK Core Error: [C0005] Invalid provided chain, value must be a positive number, or a hex-string starting with '0x'

Is there a function to refresh the entire collection?

We don’t have that, only per token id.