Ethers provider behaviour when hitting the API key daily limit
When the daily API key limit is being hit, an API request to Infura should return: “exceeded project daily request limit”.
However, the ethers InfuraProvider can throw a timeout error and the JsonRpcProvider can throw a could not detect network error.
Please follow the progress on this issue here: https://github.com/ethers-io/ethers.js/issues/2839. Learn more about Infura daily limits.