I'm facing an error while fetching the details of all NFTs using a wallet address. It's working fine on the devnet, but when I switch to the mainnet, it shows an issue. Could you please clarify the problem I encountered?
error: Error: 410 Gone: {"jsonrpc": "2.0", "error":{"code": 410, "message": "The RPC call or parameters have been disabled."} } Facing.
code:
const connection = new Connection(clusterApiUrl("mainnet-beta"));
const metaplex = Metaplex.make(connection);
const owner = new PublicKey("walletAddress");
const allNFTs = await metaplex.nfts().findAllByOwner({ owner });
console.log("All Nfts:", allNFTs);