Moralis.Web3Api - GetAllTokenIds Error on .NET

When I call the GetAllTokenIds function of Moralis.Web3Api on .NET, I got the following error :
Moralis.Web3Api.Client.ApiException: Error calling GetAllTokenIds: {“code”:141,“error”:“Cannot convert undefined or null to object”}

This is how I call it :
MoralisClient.Web3Api.Token.GetAllTokenIds(“0x8f0c06806f6b5c5a422d67c27b48c40bf18d50bd”, ChainList.rinkeby);

Found an alternate solution.
Instead of using MoralisClient, I make a http request to the endpoint below:{contractAddress}?chain={chain}