Subscription fail:0 websocket: read limit exceeded

Hi,

I have an app that communicates with Infura WebSocket. This app is in prod for several months and recently it started to fail with error Subscription fail:0 websocket: read limit exceeded" when it tries to fetch 150 blocks (i.e. “endBlockHeight”:“10225858”,“startBlockHeight”:“10225678”) of logs on USDT contract using https://github.com/ethereum/go-ethereum/blob/master/ethclient/ethclient.go#L377 (eth_getLogs). Can I do something about it (for example set some config in Web Socket client) or should I query less blocks?

Hi @Pale_Diamond, there is a log size limit on the response to this query, so yes you should query for less blocks at a time. That will fix it.