Open LiorRabin opened 6 years ago
Im getting this same error using Rinkeby network. It used to be a rare occurrence, but it's happening more frequently all of a sudden.
Everything is fine for https://kovan.infura.io/v3/<api key>
, but I'm getting Error: Invalid JSON RPC response: ""
too often for https://ropsten.infura.io/v3/<api key>
and https://mainnet.infura.io/v3/<api key>
. I tried to do requests in sequence with small delay instead of parallel, but it didn't help. Also I noticed that requests with fromBlock: 2000001
fails more often than with higher block numbers.
This is a snippet of my code:
Sometimes I see in log:
Sometimes I see this:
And sometimes everything is ok.
This happens on
https://mainnet.infura.io/<API_KEY>
and onhttps://ropsten.infura.io/<API_KEY>
What am I doing/understanding wrong here?
Thanks