-32000 execution aborted

Hi all. When sending the eth_getBlockByNumber request I periodically receive the error:
{ code: ServerError(-32000), message: "execution aborted (timeout = 5s)", data: None }
The problem is not obvious from the contents of the error. Does anyone have any ideas how to solve this problem?

Hey, it would help to see the relevant code snippet. Thanks !