friendmex icon indicating copy to clipboard operation
friendmex copied to clipboard

Indexer error in specfic blocks

Open vivinvinh212 opened this issue 1 year ago • 4 comments

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.

vivinvinh212 avatar Aug 25 '23 08:08 vivinvinh212

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?

aljosasokic avatar Aug 25 '23 19:08 aljosasokic

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

KoenRijpstra avatar Aug 26 '23 15:08 KoenRijpstra

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

@KoenRijpstra tnx, that did the trick.

aljosasokic avatar Aug 27 '23 17:08 aljosasokic

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

curbcoin avatar Sep 09 '23 16:09 curbcoin