subql icon indicating copy to clipboard operation
subql copied to clipboard

RangeError: index out of range:

Open alexanderludwig opened this issue 1 year ago • 4 comments

Prerequisites

  • [x ] Are you running the latest version(s)?
  • [ x] Have you searched the documentation for your issue?
  • [ x] Did you search for an existing issue or pull request?

Description

When running Celestia standard template receiving this issue: image

Details

These details can help to reproduce the environment the issue is occurring

image

alex@Alexanders-MBP celestia-starter % subql --version @subql/cli/5.2.3 darwin-arm64 node-v21.7.3

Local Environment: [You can get this information from executing subql version.] Query Version: [What is the version of the query service?] Indexer Version: [What is the version of the indexer service?] Network Details: chainId: "celestia", startBlock: 2143040, endpoint: [ "https://celestia-rpc.publicnode.com:443", ],

Steps to Reproduce

Example project: Just start the cosmos starter with described params.

Expected behavior: [What you expected to happen] Indexing

Actual behavior: [What actually happened] error message from above

Any other information

Is there any other information you would like to add?

alexanderludwig avatar Aug 19 '24 17:08 alexanderludwig

Hi @alexanderludwig

This is trying to decode a transaction using this function in a block but its not a RawTx. In order to help with this I would need to know the actual type to find a way to fix this.

stwiname avatar Aug 20 '24 04:08 stwiname

We have a similar issue that is being worked on but it doesn't seem to apply to your specific issue. https://github.com/subquery/subql-cosmos/pull/280

stwiname avatar Aug 20 '24 04:08 stwiname

thanks for having a look at this @stwiname!! can you try running docker compose up for Celestia in cosmos-subql-starter? get the issue there without having done any modifications.

alexanderludwig avatar Aug 21 '24 15:08 alexanderludwig

Yes, I can reproduce the issue, we use cosmjs for decoding blocks but Celestia has different content in the transactions data. I've found some relevant issues from their organisation.

https://github.com/celestiaorg/celestia-app/issues/2715 https://github.com/celestiaorg/celestia-core/issues/1136

stwiname avatar Aug 21 '24 21:08 stwiname