Error: Invalid cursor

Hello, I have a problem of Invalid cursor in these lines:

const cursor = null;

tokens = (
      await Moralis.Web3API.token.getNFTOwners({
        address: MULTIPLE_TOKEN_ADDRESS,
        chain,
        cursor,
        limit: quantity,
      })
    ).result;

maybe you don’t have to send the cursor parameter when it is null

but, can i use limit parameter without cursor?

yes, you can use limit parameter, try with an empty string for cursor instead of null for the first request

empty string does not work to

you don’t have to pass that cursor parameter at all, you can use .next() syntax

https://docs.moralis.io/moralis-dapp/web3-api#web3-api-pagination-examples-with-.next

can you share more of the code?

this should work:
https://docs.moralis.io/misc/rate-limit#example-of-how-to-use-cursor-nodejs