400 When Trying to getNFTs

Iā€™m attempting to follow the docs to getNFTs, but am getting a 400.

<html>
  <head>
    <script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
    <script src="https://unpkg.com/moralis/dist/moralis.js"></script>
  </head>
  <body>
    <h1>Aww, Rats! The Closet.</h1>

    <script>
      // connect to Moralis server
      Moralis.initialize(I added my Application ID);
      Moralis.serverURL = I added my Server URL;
      // Get NFTs
      async function getNFTs() {
        const options = {
          chain: "matic",
          address: I added my wallet ID
        };
        const polygonNFTs = await Moralis.Web3API.account.getNFTs(options);

        console.log(polygonNFTs);
      }

      getNFTs();
    </script>
  </body>
</html>

Anything Iā€™m doing wrong? I checked both the docs and a YouTube video that appears to be from Moralis.

This works when Iā€™m using 0.0.52 but not latest.

Try to use polygon instead of matic

This worked fine for me on 0.0.52 and latest (latest is also 0.0.52 now):

options = {
          chain: "matic",
          address: "0xf35ae3977559a98219f0ce1be43be3654a943a5f"
        };
polygonNFTs = await Moralis.Web3API.account.getNFTs(options);

{total: 2, page: 0, page_size: 500, result: Array(2), status: 'SYNCED'}
options = {
          chain: "polygon",
          address: "0xf35ae3977559a98219f0ce1be43be3654a943a5f"
        };
polygonNFTs = await Moralis.Web3API.account.getNFTs(options);

{total: 2, page: 0, page_size: 500, result: Array(2), status: 'SYNCED'}