We are witnessing this issues recently, when we setup Plugin2.0.
This issues were not occuring before, but recently. To check the issues, we have executed the Plugin2.0 in "Polygon" and also in "XDC Mainnet". Logs for both the execution is captured below.
- In Plugin, when we configure more than 4 jobs, the execution is failed and resulting the following error
"2023-09-25T12:48:34.707+0530 [ERROR] Error in new head subscription, unsubscribed headtracker/head_listener.go:67 err=websocket: close 1000 (normal) evmChainID=50 logger=EVM.HeadTracker.HeadListener stacktrace=github.com/GoPlugin/pluginV2/core/chains/evm/headtracker.(*headListener).ListenForNewHeads"
When we execute the same against "Polygon" chain, it runs without any issues.
Log shows that, "headtracker is missing" a block, due to which we face "RPC node is not reachable" and it is on & off and instable.
Head & Block logs for Polygon: https://notepad.pw/g50JXvp3RIn1PNfe2Tea
For XDC : https://notepad.pw/o7VtAjvuS4dFtN0YdLyd
You may see the difference in XDC Log, where the blocks are missing.
Note: We have tested the available RPC from "https://chainlist.org/" for Apothem & Mainnet and the results are same.
Let us know if you need some more informations to debug.
Kindly review and let us know the possible solutions.