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
would throw a timeout and the JsonRpcProvider
would throw could not detect network
.
Please follow the progress on this issue here: https://github.com/ethers-io/ethers.js/issues/2839. Learn more about Infura daily limits.