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,
        limit: quantity,

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

can you share more of the code?

this should work: