I think is worth mentioning (becausebecause is such a common mistake), that you will also see this error if you will also see this error when a web3 app is connected to Mainnet but the network of your Phantom wallet is switched to Devnet (or the other way around)