friendmex
friendmex copied to clipboard
Indexer error in specfic blocks
When I was running the indexer, it stucked on block 2449440 -> 2449540 with error:
[2023-08-25T08:52:32.580Z (error)] Error when syncing between range Found non-callable @@iterator
And it keeped running around and around these blocks.
hey, @Anish-Agnihotri first thanks for this amasing software. It is exactly what I was looking for!
It all worked fine but then I got the problem and it is stuck in this blocks:
[2023-08-25T19:26:21.924Z (info)] Collecting 100 blocks: 2449439 -> 2449539 [2023-08-25T19:26:22.988Z (error)] Error when syncing between range Found non-callable @@iterator [2023-08-25T19:26:22.988Z (info)] Sleeping for 5s
Anyone found solution for this?
It seems that the underlying error is:
{
jsonrpc: '2.0',
error: { code: -32014, message: 'too many RPC calls in batch request' },
id: null
}
Changing the chunks size from 950
to something like 100
on the following line fixed it for me: https://github.com/Anish-Agnihotri/friendmex/blob/main/indexer/src/keeper.ts#L138
It seems that the underlying error is:
{ jsonrpc: '2.0', error: { code: -32014, message: 'too many RPC calls in batch request' }, id: null }
Changing the chunks size from
950
to something like100
on the following line fixed it for me: https://github.com/Anish-Agnihotri/friendmex/blob/main/indexer/src/keeper.ts#L138
@KoenRijpstra tnx, that did the trick.
getting [2023-09-09T16:32:04.087Z (info)] Collecting 100 blocks: 2544839 -> 2544939 [2023-09-09T16:32:04.311Z (error)] Error when syncing between range Cannot read properties of undefined (reading 'transactions') [2023-09-09T16:32:04.311Z (info)] Sleeping for 5s