ParseError: Invalid JSON RPC response: "error code: 1020"

I am getting this error when I am trying to get the wallet balance using moralis.
Actually, I am using getAllERC20() function to get the wallet balance.

const balances = await Moralis.Web3.getAllERC20({ chain: β€˜bsc’, address: β€˜0xb93F90aa5B2D1ff56e528cC1f2eEb5b624b1Eb26’ });

Here is the source from where I have get this code.

Here is my code line to get wallet balance from wallet address.

would you please let me know where is the issue.

that is a legacy tutorial, what version of sdk you are using?

you can use this endpoint to get the erc20 tokens for an address:

here is a tutorial:

I am using β€œmoralis”: β€œ^2.11.0” version

Can you give a complete code example that gives that error then?