Token_id must be a valid number string Error

After migrating to a self hosted server I am getting this error when trying to get the metadata from an nft

Screenshot at Nov 02 12-52-22

Screenshot at Nov 02 12-52-43

Packages:
“moralis-v1”: “^1.11.0”
“react-moralis”: “^1.4.2”

where from is returned that error?
can you paste those parameters?

This is the code I use to get the metadata, the error started appearing when I added the site to a self hosted server and started using sepolia

import { useMoralisWeb3Api } from "react-moralis";

const Web3Api = useMoralisWeb3Api();

const getNFT = async () => {
    const tokenIdMetadata = await Web3Api.token.getTokenIdMetadata({
      chain: getChainIdByContract(address), //Return 0xaa36a7
      address: "0x8f33653c1bcF843382227Da151Ab6FF8798DdC3C",
      token_id: "1",
      format: 'decimal'
    });
  }

can you try with tokeId instead of token_id?

Great, that works, but I had to use the type any since “tokenId” is not a property that the getTokenIdMetadata function expects

Screenshot at Nov 02 13-14-27

this is server side? you are using moralis v2 server side?